mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
HackStudio: Support variable inspection in nested scopes
This commit is contained in:
parent
f0cbaf453c
commit
14ee090f25
3 changed files with 10 additions and 22 deletions
|
@ -90,7 +90,7 @@ String variable_value_as_string(const DebugInfo::VariableInfo& variable)
|
|||
return String::format("'%c' (%d)", static_cast<char>(value.value()), static_cast<char>(value.value()));
|
||||
}
|
||||
|
||||
return String::format("address: %08x, ", variable_address);
|
||||
return String::format("type: %s @ %08x, ", variable.type.characters(), variable_address);
|
||||
}
|
||||
|
||||
GUI::Variant DebugInfoModel::data(const GUI::ModelIndex& index, Role role) const
|
||||
|
@ -130,3 +130,8 @@ void DebugInfoWidget::update_variables(const PtraceRegisters& regs)
|
|||
auto model = create_model(regs);
|
||||
m_info_view->set_model(model);
|
||||
}
|
||||
|
||||
void DebugInfoWidget::program_stopped()
|
||||
{
|
||||
m_info_view->set_model({});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue