diff options
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, |