This commit is contained in:
T0b1
2023-06-03 01:32:24 +02:00
parent ec2eeb10f7
commit 4f0f320ac4
9 changed files with 172 additions and 11 deletions

43
src/data.h Normal file
View File

@@ -0,0 +1,43 @@
#pragma once
#include <cstddef>
#include <cstdint>
#include <variant>
#include <vector>
namespace dbgui::data
{
struct DataSource
{
enum class Type : uint8_t
{
reg,
// TODO: special IP/SP source? so that scope selection can apply to that?
// variable,
// const,
};
struct Reg
{
// TODO: identify through names?
uint16_t set;
uint16_t idx;
};
Type type;
std::variant<std::monostate, Reg> data;
};
struct DataNode
{
size_t id;
};
struct DataResult
{
// TODO: needs indicator that data was failed to be retrieved
size_t id;
std::vector<uint8_t> data;
};
} // namespace dbgui::data