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