From 66000c76d2c192df515d7a06af605587462d60be Mon Sep 17 00:00:00 2001 From: hachem Date: Sat, 8 Feb 2025 01:38:42 +0100 Subject: feat: disassembly --- src/debugger/types.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/debugger/types.h') diff --git a/src/debugger/types.h b/src/debugger/types.h index 1ceee29..8428c1d 100644 --- a/src/debugger/types.h +++ b/src/debugger/types.h @@ -92,6 +92,9 @@ namespace Hsdbg bool resolved = false; bool by_function = false; + + bool by_address = false; + uint64_t file_address = 0; }; struct StackFrame @@ -123,4 +126,26 @@ namespace Hsdbg std::string name; uint64_t value = 0; }; + + struct Instruction + { + uint64_t address = 0; + + uint64_t file_address = 0; + + std::string mnemonic; + std::string operands; + std::string comment; + uint32_t size = 0; + + bool current = false; + }; + + struct Symbol + { + std::string name; + uint64_t file_address = 0; + uint64_t address = 0; + uint64_t size = 0; + }; } -- cgit v1.3