mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibCoredump: Add stack frame entry even if there is no object info
We know the object name and are able to include it. Function name and source position are still unknown and will just be displayed as "??? ()"
This commit is contained in:
@@ -117,8 +117,10 @@ void Backtrace::add_entry(const Reader& coredump, FlatPtr ip)
|
||||
// in the object file.
|
||||
auto region = coredump.first_region_for_object(object_name);
|
||||
auto object_info = object_info_for_region(*region);
|
||||
if (!object_info)
|
||||
if (!object_info) {
|
||||
m_entries.append({ ip, object_name, {}, {} });
|
||||
return;
|
||||
}
|
||||
|
||||
auto function_name = object_info->debug_info->elf().symbolicate(ip - region->region_start);
|
||||
auto source_position = object_info->debug_info->get_source_position_with_inlines(ip - region->region_start);
|
||||
|
||||
Reference in New Issue
Block a user