mirror of
https://github.com/RGBCube/serenity
synced 2026-01-18 06:01:00 +00:00
HackStudio: Make debugger support shared libraries
This commit is contained in:
parent
dcdb68a013
commit
94db04fc12
7 changed files with 55 additions and 21 deletions
|
|
@ -184,7 +184,10 @@ void VariablesModel::update()
|
|||
|
||||
RefPtr<VariablesModel> VariablesModel::create(const PtraceRegisters& regs)
|
||||
{
|
||||
auto variables = Debugger::the().session()->debug_info().get_variables_in_current_scope(regs);
|
||||
auto lib = Debugger::the().session()->library_at(regs.eip);
|
||||
if (!lib)
|
||||
return nullptr;
|
||||
auto variables = lib->debug_info->get_variables_in_current_scope(regs);
|
||||
return adopt(*new VariablesModel(move(variables), regs));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue