summaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-12-19 22:19:49 +0000
committerMark Kettenis <kettenis@gnu.org>2005-12-19 22:19:49 +0000
commita3eb3a5067a0a071f9efaa4f489f6378d2444a1f (patch)
tree77824d6e7dea7d4becbe484811fb9d69f6572a30 /gdb/i386-tdep.h
parent435a8f26f26cb10f46551cedfb4fc3949f8933b4 (diff)
downloadgdb-a3eb3a5067a0a071f9efaa4f489f6378d2444a1f.tar.gz
* 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index c38784c2689..2d995f4b584 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);