diff options
| author | Yang Liu <liuyang22@iscas.ac.cn> | 2024-12-18 15:11:09 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-18 08:11:09 +0100 |
| commit | 47f5fe7caf92ed5b96b8d6b3e34a098bc6c2643a (patch) | |
| tree | a0e24c61b2996c11a37ae17abeca1bcfe0cb9166 /src/include | |
| parent | 6e0f32f4ca4b35bda036caa6ad3abcae4ae64cdc (diff) | |
| download | box64-47f5fe7caf92ed5b96b8d6b3e34a098bc6c2643a.tar.gz box64-47f5fe7caf92ed5b96b8d6b3e34a098bc6c2643a.zip | |
[GDBJIT] Show x64pc in gdb, also added documentation (#2163)
* [GDBJIT] Show x64pc in gdb * Add env. variable and documentation * typo * oops
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gdbjit.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/include/gdbjit.h b/src/include/gdbjit.h index 70405d3e..40f1ad58 100644 --- a/src/include/gdbjit.h +++ b/src/include/gdbjit.h @@ -11,19 +11,20 @@ typedef struct gdbjit_block_s { FILE* file; GDB_CORE_ADDR start; GDB_CORE_ADDR end; - uintptr_t alloced; + uintptr_t x64start; + size_t alloced; size_t nlines; struct gdb_line_mapping lines[0]; } gdbjit_block_t; -void GdbJITNewBlock(gdbjit_block_t* block, GDB_CORE_ADDR start, GDB_CORE_ADDR end); +void GdbJITNewBlock(gdbjit_block_t* block, GDB_CORE_ADDR start, GDB_CORE_ADDR end, uintptr_t x64start); gdbjit_block_t* GdbJITBlockAddLine(gdbjit_block_t* block, GDB_CORE_ADDR addr, const char* line); void GdbJITBlockReady(gdbjit_block_t* block); #else -#define GdbJITNewBlock(a, b, c) +#define GdbJITNewBlock(a, b, c, d) #define GdbJITBlockAddLine(a, b, c) NULL #define GdbJITBlockReady(a) |