mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 20:07:34 +00:00
HackStudio: Close the debug tab when debugged program exits
This commit is contained in:
parent
a3367cf4fa
commit
f0cbaf453c
2 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,7 @@ public:
|
||||||
virtual ~DebugInfoWidget() override {}
|
virtual ~DebugInfoWidget() override {}
|
||||||
|
|
||||||
void update_variables(const PtraceRegisters&);
|
void update_variables(const PtraceRegisters&);
|
||||||
|
void program_stopped();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit DebugInfoWidget();
|
explicit DebugInfoWidget();
|
||||||
|
|
|
@ -631,6 +631,8 @@ int main(int argc, char** argv)
|
||||||
},
|
},
|
||||||
[&]() {
|
[&]() {
|
||||||
dbg() << "Program exited";
|
dbg() << "Program exited";
|
||||||
|
debug_info_widget.program_stopped();
|
||||||
|
hide_action_tabs();
|
||||||
Core::EventLoop::main().post_event(*g_window, make<Core::DeferredInvocationEvent>([=](auto&) {
|
Core::EventLoop::main().post_event(*g_window, make<Core::DeferredInvocationEvent>([=](auto&) {
|
||||||
GUI::MessageBox::show("Program Exited", "Debugger", GUI::MessageBox::Type::Information, GUI::MessageBox::InputType::OK, g_window);
|
GUI::MessageBox::show("Program Exited", "Debugger", GUI::MessageBox::Type::Information, GUI::MessageBox::InputType::OK, g_window);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue