1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00

Kernel: Do not assert if unable to load kernel symbols

This commit is contained in:
Jean-Baptiste Boric 2021-01-20 20:28:26 +01:00 committed by Andreas Kling
parent 2f8b047339
commit 06b73eea94
Notes: sideshowbarker 2024-07-18 22:58:00 +09:00

View file

@ -191,11 +191,12 @@ void dump_backtrace()
void load_kernel_symbol_table()
{
auto result = VFS::the().open("/res/kernel.map", O_RDONLY, 0, VFS::the().root_custody());
ASSERT(!result.is_error());
auto description = result.value();
auto buffer = description->read_entire_file();
ASSERT(!buffer.is_error());
load_kernel_sybols_from_data(*buffer.value());
if (!result.is_error()) {
auto description = result.value();
auto buffer = description->read_entire_file();
if (!buffer.is_error())
load_kernel_sybols_from_data(*buffer.value());
}
}
}