diff options
author | Mark Kettenis <kettenis@gnu.org> | 2000-05-25 17:18:01 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2000-05-25 17:18:01 +0000 |
commit | 7dfa765cc10b73edb8538aafbedd49acdeada1e8 (patch) | |
tree | 027eb6cdc3068c114d5f63efb91c8ef247c4a1d3 /gdb/configure.in | |
parent | b1eeef9a6ee2f766b8fef104a889c90a1e6b6079 (diff) | |
download | gdb-7dfa765cc10b73edb8538aafbedd49acdeada1e8.zip gdb-7dfa765cc10b73edb8538aafbedd49acdeada1e8.tar.gz gdb-7dfa765cc10b73edb8538aafbedd49acdeada1e8.tar.bz2 |
* acconfig.h (HAVE_R_FS, HAVE_R_GS): Add.
* configure.in: Add checks for r_fs and r_gs members of
`struct reg'.
* config.in, configure: Regenerated.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index b009687..e2bc5aa 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -111,6 +111,21 @@ AC_C_CONST AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask) AC_FUNC_ALLOCA +# See if machine/reg.h supports the %fs and %gs i386 segment registers. +# Older i386 BSD's don't have the r_fs and r_gs members of `struct reg'. +AC_CACHE_CHECK([for r_fs in struct reg], gdb_cv_struct_r_fs, +[AC_TRY_COMPILE([#include <machine/reg.h>], [struct reg r; r.r_fs;], +gdb_cv_struct_r_fs=yes, gdb_cv_struct_r_fs=no)]) +if test $gdb_cv_struct_r_fs = yes; then + AC_DEFINE(HAVE_R_FS) +fi +AC_CACHE_CHECK([for r_gs in struct reg], gdb_cv_struct_r_gs, +[AC_TRY_COMPILE([#include <machine/reg.h>], [struct reg r; r.r_gs;], +gdb_cv_struct_r_gs=yes, gdb_cv_struct_r_gs=no)]) +if test $gdb_cv_struct_r_gs = yes; then + AC_DEFINE(HAVE_R_GS) +fi + dnl See if ptrace.h provides the PTRACE_GETREGS request. AC_MSG_CHECKING(for PTRACE_GETREGS) AC_CACHE_VAL(gdb_cv_have_ptrace_getregs, |