mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:07:34 +00: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:
parent
394227b2f9
commit
6df246091b
1 changed files with 3 additions and 1 deletions
|
@ -117,8 +117,10 @@ void Backtrace::add_entry(const Reader& coredump, FlatPtr ip)
|
||||||
// in the object file.
|
// in the object file.
|
||||||
auto region = coredump.first_region_for_object(object_name);
|
auto region = coredump.first_region_for_object(object_name);
|
||||||
auto object_info = object_info_for_region(*region);
|
auto object_info = object_info_for_region(*region);
|
||||||
if (!object_info)
|
if (!object_info) {
|
||||||
|
m_entries.append({ ip, object_name, {}, {} });
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto function_name = object_info->debug_info->elf().symbolicate(ip - region->region_start);
|
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);
|
auto source_position = object_info->debug_info->get_source_position_with_inlines(ip - region->region_start);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue