xref: /openbsd/gnu/usr.bin/binutils/gdb/nlm/i386.h (revision 404b540a)
1 /* Register values.  All of these values *MUST* agree with tm.h */
2 #define SP_REGNUM 4		/* Contains address of top of stack */
3 #define PC_REGNUM 8		/* Contains program counter */
4 #define DEPRECATED_FP_REGNUM 5		/* Virtual frame pointer */
5 #define NUM_REGS 16		/* Number of machine registers */
6 #define REGISTER_BYTES (NUM_REGS * 4) /* Total size of registers array */
7 
8 #define ExceptionPC ExceptionEIP
9 #define DECR_PC_AFTER_BREAK 1	/* int 3 leaves PC pointing after insn */
10 #define BREAKPOINT {0xcc}
11 #define BREAKPOINT_SIZE (sizeof breakpoint_insn)
12 
13 #define StackFrame T_TSS_StackFrame
14