breakpoints; thread/frame selection that should work; TODO: is slow
This commit is contained in:
@@ -107,11 +107,28 @@ namespace dbgui::frontend
|
||||
bool open;
|
||||
};
|
||||
|
||||
struct SourceWindow
|
||||
{
|
||||
bool draw(Frontend &);
|
||||
void handle_data_res(const BackToFront::DataResult &result);
|
||||
|
||||
std::string id;
|
||||
bool open;
|
||||
bool first;
|
||||
bool line_changed;
|
||||
|
||||
size_t ip_src_id, line_entry_src_id;
|
||||
std::string file_name;
|
||||
uint32_t line;
|
||||
std::vector<char> file_data;
|
||||
std::vector<std::string_view> lines;
|
||||
};
|
||||
|
||||
struct Window
|
||||
{
|
||||
WindowType type;
|
||||
std::variant<std::monostate, RegWindow, ThreadWindow, FrameWindow,
|
||||
DisasmWindow, BreakpointWindow>
|
||||
DisasmWindow, BreakpointWindow, SourceWindow>
|
||||
data;
|
||||
|
||||
// if true, window is closed and should be deleted
|
||||
@@ -122,6 +139,7 @@ namespace dbgui::frontend
|
||||
static Window create_frames(size_t window_id);
|
||||
static Window create_disas(size_t window_id);
|
||||
static Window create_bp(size_t window_id);
|
||||
static Window create_source(size_t window_id);
|
||||
|
||||
void handle_data_res(const BackToFront::DataResult &result);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user