forked from Imagelibrary/binutils-gdb
* i386-tdep.h (I386_SEL_RPL, I386_SEL_UPL, I386_SEL_KPL): New
defines. * i386obsd-tdep.c: Include "frame-unwind.h" and "trad-frame.h". (i386obsd_tf_reg_offset, i386obsd_trapframe_unwind): New variables. (i386obsd_trapframe_cache, i386obsd_trapframe_this_id) (i386obsd_trapframe_prev_register, i386obsd_trapframe_sniffer): New functions. (i386obsd_init_abi): Append i386obsd_trapframe_sniffer. * Makefile.in (i386obsd-tdep.o): Update dependencies.
This commit is contained in:
@@ -149,6 +149,11 @@ enum i386_regnum
|
||||
/* Size of the largest register. */
|
||||
#define I386_MAX_REGISTER_SIZE 16
|
||||
|
||||
/* Segment selectors. */
|
||||
#define I386_SEL_RPL 0x0003 /* Requester's Privilege Level mask. */
|
||||
#define I386_SEL_UPL 0x0003 /* User Privilige Level. */
|
||||
#define I386_SEL_KPL 0x0000 /* Kernel Privilige Level. */
|
||||
|
||||
/* Functions exported from i386-tdep.c. */
|
||||
extern CORE_ADDR i386_pe_skip_trampoline_code (CORE_ADDR pc, char *name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user