breakpoints

This commit is contained in:
T0b1
2023-06-04 22:08:49 +02:00
parent 343a30289c
commit 78e7f5cca7
12 changed files with 341 additions and 17 deletions

View File

@@ -20,6 +20,7 @@ namespace dbgui::frontend
frames,
threads,
disassembly,
breakpoints,
};
struct RegWindow
@@ -98,11 +99,19 @@ namespace dbgui::frontend
std::vector<Instruction> insts;
};
struct BreakpointWindow
{
bool draw(Frontend &);
std::string id;
bool open;
};
struct Window
{
WindowType type;
std::variant<std::monostate, RegWindow, ThreadWindow, FrameWindow,
DisasmWindow>
DisasmWindow, BreakpointWindow>
data;
// if true, window is closed and should be deleted
@@ -112,6 +121,7 @@ namespace dbgui::frontend
static Window create_threads(size_t window_id);
static Window create_frames(size_t window_id);
static Window create_disas(size_t window_id);
static Window create_bp(size_t window_id);
void handle_data_res(const BackToFront::DataResult &result);
};