summaryrefslogtreecommitdiff
path: root/gdb/config.in
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-06-26 14:42:55 +0000
committerH.J. Lu <hjl.tools@gmail.com>2012-06-26 14:42:55 +0000
commit7e6a660069efaf133026626fec54c99ae3e1804a (patch)
tree854bf78aeb4828f54880702e4d18684d5be59441 /gdb/config.in
parentdbe56c985fd842f670cf1e763ea3ffa002a19f82 (diff)
downloadgdb-7e6a660069efaf133026626fec54c99ae3e1804a.tar.gz
Use PTRACE_PEEKUSER to get fs_base/gs_base
* amd64-linux-nat.c: Include <sys/user.h>. (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined. * configure.ac: Check if the fs_base and gs_base members of `struct user_regs_struct' exist. * config.in: Regenerated. * configure: Likewise.
Diffstat (limited to 'gdb/config.in')
-rw-r--r--gdb/config.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/config.in b/gdb/config.in
index 5767773a6af..74f5888282a 100644
--- a/gdb/config.in
+++ b/gdb/config.in
@@ -447,6 +447,12 @@
/* Define to 1 if `struct thread' is a member of `td_pcb'. */
#undef HAVE_STRUCT_THREAD_TD_PCB
+/* Define to 1 if `struct user_regs_struct' is a member of `fs_base'. */
+#undef HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE
+
+/* Define to 1 if `struct user_regs_struct' is a member of `gs_base'. */
+#undef HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE
+
/* Define to 1 if you have the `syscall' function. */
#undef HAVE_SYSCALL