threads and frames
This commit is contained in:
@@ -14,7 +14,7 @@ namespace dbgui::backend
|
||||
{
|
||||
struct RegSet
|
||||
{
|
||||
std::string set_name;
|
||||
std::string set_name;
|
||||
// map from debugger reg idx to frontend reg idx
|
||||
// std::vector<uint16_t> idx_map;
|
||||
std::vector<const char *> names;
|
||||
@@ -22,6 +22,22 @@ namespace dbgui::backend
|
||||
std::vector<std::vector<uint8_t>> values;
|
||||
};
|
||||
|
||||
struct Thread
|
||||
{
|
||||
uint64_t id;
|
||||
uint64_t ip;
|
||||
uint64_t stop_extra;
|
||||
ThreadStopReason stop_reason;
|
||||
std::string name;
|
||||
std::string cur_display_fn;
|
||||
};
|
||||
|
||||
struct Frame
|
||||
{
|
||||
uint64_t ip;
|
||||
std::string display_name;
|
||||
};
|
||||
|
||||
// TODO: source_init_file: false
|
||||
LLDBBackend(std::string filename);
|
||||
virtual ~LLDBBackend();
|
||||
@@ -32,6 +48,9 @@ namespace dbgui::backend
|
||||
bool step_over() override;
|
||||
bool step_out() override;
|
||||
|
||||
void cont() override;
|
||||
void pause() override;
|
||||
|
||||
private:
|
||||
void run_msg_loop();
|
||||
void wait_for_debug_events();
|
||||
@@ -42,6 +61,8 @@ namespace dbgui::backend
|
||||
std::vector<BackToFront::RegsChanged> &);
|
||||
void dump_threads();
|
||||
void check_reg_changes();
|
||||
void check_thread_changes();
|
||||
void check_frame_changes();
|
||||
|
||||
std::string _filename;
|
||||
lldb::SBDebugger _instance;
|
||||
@@ -55,5 +76,8 @@ namespace dbgui::backend
|
||||
bool _first_run = true;
|
||||
TargetState _state = TargetState::stopped;
|
||||
std::vector<RegSet> _reg_sets = {};
|
||||
std::vector<Thread> _threads = {};
|
||||
std::vector<Frame> _frames = {};
|
||||
uint16_t _selected_frame = 0;
|
||||
};
|
||||
} // namespace dbgui::backend
|
||||
Reference in New Issue
Block a user