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:
parent
55a903911b
commit
4c732abed5
4 changed files with 29 additions and 13 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue