regs and we can step into!
This commit is contained in:
39
src/frontend/target.h
Normal file
39
src/frontend/target.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <cstring>
|
||||
|
||||
#include "backend/debug_backend.h"
|
||||
|
||||
namespace dbgui::frontend
|
||||
{
|
||||
struct Target
|
||||
{
|
||||
struct Reg
|
||||
{
|
||||
std::string name;
|
||||
// TODO: handle registers as sets of 64bit?
|
||||
std::vector<uint8_t> bytes;
|
||||
};
|
||||
|
||||
struct RegSet
|
||||
{
|
||||
std::string name;
|
||||
std::vector<Reg> regs;
|
||||
};
|
||||
|
||||
Target(std::string filename);
|
||||
|
||||
TargetState state = TargetState::stopped;
|
||||
std::string filename;
|
||||
uint64_t id;
|
||||
Arch arch;
|
||||
|
||||
std::vector<RegSet> reg_sets;
|
||||
|
||||
std::shared_ptr<backend::Backend> backend = nullptr;
|
||||
};
|
||||
} // namespace dbgui::frontend
|
||||
Reference in New Issue
Block a user