threads and frames

This commit is contained in:
T0b1
2023-06-02 16:54:00 +02:00
parent ac3718b12b
commit ec2eeb10f7
12 changed files with 665 additions and 17 deletions

View File

@@ -25,6 +25,22 @@ namespace dbgui::frontend
std::vector<Reg> regs;
};
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;
};
Target(std::string filename);
TargetState state = TargetState::stopped;
@@ -33,6 +49,8 @@ namespace dbgui::frontend
Arch arch;
std::vector<RegSet> reg_sets;
std::vector<std::optional<Thread>> threads;
std::vector<std::optional<Frame>> frames;
std::shared_ptr<backend::Backend> backend = nullptr;
};