regs and we can step into!

This commit is contained in:
T0b1
2023-06-02 02:06:49 +02:00
parent d4bf6731a3
commit ac3718b12b
17 changed files with 1434 additions and 344 deletions

39
src/frontend/target.h Normal file
View 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