mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +00:00
HackStudio: Show a backtrace in the debug information tab
This commit is contained in:
parent
b9f0f402f4
commit
1fb62df02a
Notes:
sideshowbarker
2024-07-19 06:48:08 +09:00
Author: https://github.com/itamar8910
Commit: 1fb62df02a
Pull-request: https://github.com/SerenityOS/serenity/pull/2157
Reviewed-by: https://github.com/awesomekling
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