Kernel: Split debug symbols into a separate file

This speeds up the boot process considerably when specifying the kernel
image via -initrd.
This commit is contained in:
Gunnar Beutner
2021-07-17 09:43:15 +02:00
committed by Andreas Kling
parent b708b23b13
commit 98f8ecd9d2
6 changed files with 10 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ DisassemblyModel::DisassemblyModel(const Debug::DebugSession& debug_session, con
const ELF::Image* elf = nullptr;
if (containing_function.value().address_low >= 0xc0000000) {
auto file_or_error = MappedFile::map("/boot/Kernel");
auto file_or_error = MappedFile::map("/boot/Kernel.debug");
if (file_or_error.is_error())
return;
kernel_elf = make<ELF::Image>(file_or_error.value()->bytes());