aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2004-10-21 04:10:48 +0000
committerJoel Brobecker <brobecker@gnat.com>2004-10-21 04:10:48 +0000
commit43360365b41c4b4c9cc11d7f29aa5ddcd9e70925 (patch)
tree3d95a2640ed0f674068a923388a4f3e1f5e136d2 /gdb/gdbserver
parentca7d6a0cb5d6845b1b71d084fb817d4af23bf7a5 (diff)
downloadgdb-43360365b41c4b4c9cc11d7f29aa5ddcd9e70925.zip
gdb-43360365b41c4b4c9cc11d7f29aa5ddcd9e70925.tar.gz
gdb-43360365b41c4b4c9cc11d7f29aa5ddcd9e70925.tar.bz2
* linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
(ARCH_SET_FS): Likewise. (ARCH_GET_FS): Likewise. (ARCH_GET_GS): Likewise.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog7
-rw-r--r--gdb/gdbserver/linux-x86-64-low.c9
2 files changed, 16 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 96df7e5..8343916 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,10 @@
+2004-10-20 Joel Brobecker <brobecker@gnat.com>
+
+ * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
+ (ARCH_SET_FS): Likewise.
+ (ARCH_GET_FS): Likewise.
+ (ARCH_GET_GS): Likewise.
+
2004-10-16 Daniel Jacobowitz <dan@debian.org>
* linux-i386-low.c (ps_get_thread_area): New.
diff --git a/gdb/gdbserver/linux-x86-64-low.c b/gdb/gdbserver/linux-x86-64-low.c
index 45f00b0..fa7440d 100644
--- a/gdb/gdbserver/linux-x86-64-low.c
+++ b/gdb/gdbserver/linux-x86-64-low.c
@@ -47,6 +47,15 @@
#define PTRACE_ARCH_PRCTL 30
#endif
+/* The following definitions come from prctl.h, but may be absent
+ for certain configurations. */
+#ifndef ARCH_GET_FS
+#define ARCH_SET_GS 0x1001
+#define ARCH_SET_FS 0x1002
+#define ARCH_GET_FS 0x1003
+#define ARCH_GET_GS 0x1004
+#endif
+
static int x86_64_regmap[] = {
RAX * 8, RBX * 8, RCX * 8, RDX * 8,
RSI * 8, RDI * 8, RBP * 8, RSP * 8,