mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
HackStudio: Show a backtrace in the debug information tab
This commit is contained in:
parent
b9f0f402f4
commit
1fb62df02a
7 changed files with 152 additions and 9 deletions
|
@ -212,3 +212,13 @@ NonnullOwnPtr<DebugInfo::VariableInfo> DebugInfo::create_variable_info(const Dwa
|
|||
|
||||
return variable_info;
|
||||
}
|
||||
|
||||
String DebugInfo::name_of_containing_function(u32 address) const
|
||||
{
|
||||
for (const auto& scope : m_scopes) {
|
||||
if (!scope.is_function || address < scope.address_low || address >= scope.address_high)
|
||||
continue;
|
||||
return scope.name;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue