mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-16 08:02:52 +00:00
HackStudio: Make debugger support shared libraries
This commit is contained in:
parent
dcdb68a013
commit
94db04fc12
Notes:
sideshowbarker
2024-07-19 00:02:20 +09:00
Author: https://github.com/itamar8910
Commit: 94db04fc12
Pull-request: https://github.com/SerenityOS/serenity/pull/4852
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/awesomekling
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