Use PTRACE_PEEKUSER to get fs_base/gs_base
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Jun 2012 14:43:01 +0000 (14:43 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Jun 2012 14:43:01 +0000 (14:43 +0000)
commit6fea9e186c3da74c8f0ba9d007522a7575d24a73
tree062ddc7f6108c8f4f26e1f63110472d4abe86058
parenta4fd3de5d3170b2c22c9fe4cf236cc31305ef103
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.
gdb/ChangeLog
gdb/amd64-linux-nat.c
gdb/config.in
gdb/configure
gdb/configure.ac