1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:27:35 +00:00

HackStudio: Add a factory function for DebugInfoWidget

Thanks to this patch we now do error propagation in the DebugInfoWidget
creation and as a result we get rid of 4 FIXMEs :)
This commit is contained in:
Baitinq 2022-12-16 02:00:56 +01:00 committed by Andreas Kling
parent 55a903911b
commit 4c732abed5
4 changed files with 29 additions and 13 deletions

View file

@ -24,6 +24,7 @@ namespace HackStudio {
class DebugInfoWidget final : public GUI::Widget {
C_OBJECT(DebugInfoWidget)
public:
static ErrorOr<NonnullRefPtr<DebugInfoWidget>> create();
virtual ~DebugInfoWidget() override { }
void update_state(Debug::ProcessInspector&, PtraceRegisters const&);
@ -34,7 +35,7 @@ public:
private:
explicit DebugInfoWidget();
void init_toolbar();
ErrorOr<void> init_toolbar();
NonnullRefPtr<GUI::Widget> build_variables_tab();
NonnullRefPtr<GUI::Widget> build_registers_tab();