1
Fork 0
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:
Itamar 2020-05-08 14:20:06 +03:00 committed by Andreas Kling
parent b9f0f402f4
commit 1fb62df02a
7 changed files with 152 additions and 9 deletions

View file

@ -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 {};
}