summaryrefslogtreecommitdiff
path: root/DevTools/HackStudio
diff options
context:
space:
mode:
authorItamar <itamar8910@gmail.com>2020-05-08 10:59:28 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-08 12:16:10 +0200
commit14ee090f25cec713f02dd9a027b461982a2a5a51 (patch)
treea3c0029ff3ec6637a3eb8e21c2183abb44571ade /DevTools/HackStudio
parentf0cbaf453c3c1dab6a0d0c1e4f8e47176f6e7f34 (diff)
downloadserenity-14ee090f25cec713f02dd9a027b461982a2a5a51.zip
HackStudio: Support variable inspection in nested scopes
Diffstat (limited to 'DevTools/HackStudio')
-rw-r--r--DevTools/HackStudio/DebugInfoWidget.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/DevTools/HackStudio/DebugInfoWidget.cpp b/DevTools/HackStudio/DebugInfoWidget.cpp
index c84bd8325e..6e73b1a0ec 100644
--- a/DevTools/HackStudio/DebugInfoWidget.cpp
+++ b/DevTools/HackStudio/DebugInfoWidget.cpp
@@ -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({});
+}