mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
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:
parent
b708b23b13
commit
98f8ecd9d2
Notes:
sideshowbarker
2024-07-18 08:48:37 +09:00
Author: https://github.com/gunnarbeutner
Commit: 98f8ecd9d2
Pull-request: https://github.com/SerenityOS/serenity/pull/8795
Reviewed-by: https://github.com/Hendiadyoin1
6 changed files with 10 additions and 5 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue