mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
Kernel: Do not assert if unable to load kernel symbols
This commit is contained in:
parent
2f8b047339
commit
06b73eea94
Notes:
sideshowbarker
2024-07-18 22:58:00 +09:00
Author: https://github.com/boricj
Commit: 06b73eea94
Pull-request: https://github.com/SerenityOS/serenity/pull/5028
Reviewed-by: https://github.com/awesomekling
1 changed files with 6 additions and 5 deletions
|
@ -191,11 +191,12 @@ void dump_backtrace()
|
||||||
void load_kernel_symbol_table()
|
void load_kernel_symbol_table()
|
||||||
{
|
{
|
||||||
auto result = VFS::the().open("/res/kernel.map", O_RDONLY, 0, VFS::the().root_custody());
|
auto result = VFS::the().open("/res/kernel.map", O_RDONLY, 0, VFS::the().root_custody());
|
||||||
ASSERT(!result.is_error());
|
if (!result.is_error()) {
|
||||||
auto description = result.value();
|
auto description = result.value();
|
||||||
auto buffer = description->read_entire_file();
|
auto buffer = description->read_entire_file();
|
||||||
ASSERT(!buffer.is_error());
|
if (!buffer.is_error())
|
||||||
load_kernel_sybols_from_data(*buffer.value());
|
load_kernel_sybols_from_data(*buffer.value());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue