Commit 3d6cc18 1 parent 94a2a58 commit 3d6cc18 Copy full SHA for 3d6cc18
File tree 1 file changed +5
-13
lines changed
1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change 26
26
#define HVT_GDB_X86_64_H
27
27
28
28
/*
29
- * XXX: Can't find any gdb include file with the list of registers per
30
- * architecture (something like ia64_regs.h). The closest I can get is a
31
- * list of the registers from gdb (debugging an ordinary x86_64 binary):
32
- *
33
- * (gdb) info registers
34
- * rax 0x0 0
35
- * rbx 0x0 0
36
- * rcx 0x0 0
37
- * ...
38
- * fs 0x0 0
39
- * gs 0x0 0
40
- * (gdb)
29
+ * XXX: While there is no header file in GDB to include here,
30
+ * the register structure is described in XML here:
31
+ * https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=gdb/features/i386/64bit-core.xml;h=5cbae2c0ef489699fa6c6e8ed07f5fe6d3b8a6b6;hb=HEAD
41
32
*/
42
33
43
34
struct hvt_gdb_regs {
@@ -58,7 +49,8 @@ struct hvt_gdb_regs {
58
49
uint64_t r14 ;
59
50
uint64_t r15 ;
60
51
uint64_t rip ;
61
- uint64_t eflags ;
52
+ // In GDB wire protocol, EFLAGS is 32 bits.
53
+ uint32_t eflags ;
62
54
63
55
uint32_t cs ;
64
56
uint32_t ss ;
You can’t perform that action at this time.
0 commit comments