diff options
author | Mark Kettenis <kettenis@gnu.org> | 2005-12-19 22:19:49 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2005-12-19 22:19:49 +0000 |
commit | 508fbfeab6afcb76e33dbce0a72ee82c2a7401d8 (patch) | |
tree | 07e41b16bb71f29a1277aa00c36490cbc896ede4 /gdb/i386-tdep.h | |
parent | f6d183c0433a67d4addd8e752a09582378f27552 (diff) | |
download | gdb-508fbfeab6afcb76e33dbce0a72ee82c2a7401d8.zip gdb-508fbfeab6afcb76e33dbce0a72ee82c2a7401d8.tar.gz gdb-508fbfeab6afcb76e33dbce0a72ee82c2a7401d8.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/i386-tdep.h')
-rw-r--r-- | gdb/i386-tdep.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h index c38784c..2d995f4 100644 --- a/gdb/i386-tdep.h +++ b/gdb/i386-tdep.h @@ -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); |