WIP
This commit is contained in:
47
src/frontend/window.h
Normal file
47
src/frontend/window.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
|
||||
namespace dbgui::frontend {
|
||||
enum class WindowType : uint8_t {
|
||||
regs,
|
||||
source,
|
||||
memory,
|
||||
variables,
|
||||
stack,
|
||||
threads,
|
||||
disassembly,
|
||||
};
|
||||
|
||||
struct RegWindow {
|
||||
enum class RegValType : uint8_t {
|
||||
flag,
|
||||
u64,
|
||||
u128,
|
||||
u256,
|
||||
u512,
|
||||
};
|
||||
|
||||
struct Reg {
|
||||
std::string name;
|
||||
RegValType type;
|
||||
union {
|
||||
bool bval;
|
||||
uint64_t u64val;
|
||||
uint64_t u128_val[2];
|
||||
uint64_t u256_val[4];
|
||||
uint64_t u512_val[8];
|
||||
};
|
||||
};
|
||||
|
||||
std::vector<Reg> regs;
|
||||
|
||||
void draw();
|
||||
};
|
||||
|
||||
struct Window {
|
||||
WindowType type;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user