* nlm/i386.c, nlm/i386.h: New files that contain i386 specific code.

This commit is contained in:
J.T. Conklin
1994-08-19 00:06:47 +00:00
parent f494527192
commit ef4b379aab
3 changed files with 105 additions and 0 deletions

13
gdb/nlm/i386.h Normal file
View File

@@ -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