aboutsummaryrefslogtreecommitdiff
path: root/gdb/nlm/i386.h
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-08-19 00:06:47 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-08-19 00:06:47 +0000
commitef4b379aabdb863aa520a9d66ec4d823e918ab1f (patch)
treee750a228afb13a5fffb66603ce28bca5b800968a /gdb/nlm/i386.h
parentf4945271925a907e49f0d0a0b2ef8a9eab3998a2 (diff)
downloadgdb-ef4b379aabdb863aa520a9d66ec4d823e918ab1f.zip
gdb-ef4b379aabdb863aa520a9d66ec4d823e918ab1f.tar.gz
gdb-ef4b379aabdb863aa520a9d66ec4d823e918ab1f.tar.bz2
* nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.
Diffstat (limited to 'gdb/nlm/i386.h')
-rw-r--r--gdb/nlm/i386.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/nlm/i386.h b/gdb/nlm/i386.h
new file mode 100644
index 0000000..155702b
--- /dev/null
+++ b/gdb/nlm/i386.h
@@ -0,0 +1,13 @@
+/* Register values. All of these values *MUST* agree with tm.h */
+#define SP_REGNUM 4 /* Contains address of top of stack */
+#define PC_REGNUM 8 /* Contains program counter */
+#define FP_REGNUM 5 /* Virtual frame pointer */
+#define NUM_REGS 16 /* Number of machine registers */
+#define REGISTER_BYTES (NUM_REGS * 4) /* Total size of registers array */
+
+#define ExceptionPC ExceptionEIP
+#define DECR_PC_AFTER_BREAK 1 /* int 3 leaves PC pointing after insn */
+#define BREAKPOINT {0xcc}
+#define BREAKPOINT_SIZE (sizeof breakpoint_insn)
+
+#define StackFrame T_TSS_StackFrame