aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/include/gdb_machdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/amd64/include/gdb_machdep.h')
-rw-r--r--sys/amd64/include/gdb_machdep.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/amd64/include/gdb_machdep.h b/sys/amd64/include/gdb_machdep.h
index 6ad8b01d00ca..add6dc94dfec 100644
--- a/sys/amd64/include/gdb_machdep.h
+++ b/sys/amd64/include/gdb_machdep.h
@@ -33,6 +33,22 @@
#define GDB_BUFSZ (GDB_NREGS * 16)
#define GDB_NREGS 56
+#define GDB_REG_RAX 0
+#define GDB_REG_RBX 1
+#define GDB_REG_RCX 2
+#define GDB_REG_RDX 3
+#define GDB_REG_RSI 4
+#define GDB_REG_RDI 5
+#define GDB_REG_RBP 6
+#define GDB_REG_RSP 7
+#define GDB_REG_R8 8
+#define GDB_REG_R9 9
+#define GDB_REG_R10 10
+#define GDB_REG_R11 11
+#define GDB_REG_R12 12
+#define GDB_REG_R13 13
+#define GDB_REG_R14 14
+#define GDB_REG_R15 15
#define GDB_REG_PC 16
static __inline size_t