mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +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 {};
|
||||
}
|
||||
|
|
|
@ -93,6 +93,8 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
String name_of_containing_function(u32 address) const;
|
||||
|
||||
private:
|
||||
void prepare_variable_scopes();
|
||||
void prepare_lines();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue