diff options
author | Walfred Tedeschi <walfred.tedeschi@intel.com> | 2017-01-27 15:19:12 +0100 |
---|---|---|
committer | Walfred Tedeschi <walfred.tedeschi@intel.com> | 2017-01-27 15:20:11 +0100 |
commit | 239b6d10954b18ce089e9c3a667e7f2df3655476 (patch) | |
tree | 263663d502f0fc622f11b9cc62bc03d6d748f97a /gdb/gdbserver/config.in | |
parent | 387dd77738619d7e898f063bbeb1b8b6faf6cad5 (diff) | |
download | gdb-239b6d10954b18ce089e9c3a667e7f2df3655476.zip gdb-239b6d10954b18ce089e9c3a667e7f2df3655476.tar.gz gdb-239b6d10954b18ce089e9c3a667e7f2df3655476.tar.bz2 |
gdbserver-amd64: add HAVE_STRUCT_USER_REGS_STRUCT_(GS|FS)_BASE for gdbserver.
The macros mentioned in the title were set only for GDB. In gdbserver they
were not set until now. To align the code in GDB and gdbserver these macros
are also added into gdbserver, enabling read and write of gs_base and fs_base
registers from the system in new and old kernels.
2017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
gdb/gdbserver/ChangeLog:
* 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/gdbserver/config.in')
-rw-r--r-- | gdb/gdbserver/config.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbserver/config.in b/gdb/gdbserver/config.in index b721ea8..34a7443 100644 --- a/gdb/gdbserver/config.in +++ b/gdb/gdbserver/config.in @@ -238,6 +238,12 @@ /* Define to 1 if `struct stat' is a member of `st_blocks'. */ #undef HAVE_STRUCT_STAT_ST_BLOCKS +/* 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 the target supports __sync_*_compare_and_swap */ #undef HAVE_SYNC_BUILTINS |