AC_FUNC_VFORK
AC_FUNC_ALLOCA
-# See if machine/reg.h supports the %fs and %gs i386 segment registers.
+# 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_reg_r_fs,
[AC_TRY_COMPILE([#include <machine/reg.h>], [struct reg r; r.r_fs;],
AC_DEFINE(HAVE_STRUCT_REG_R_GS)
fi
-dnl See if ptrace.h provides the PTRACE_GETREGS request.
+# See if <sys/ptrace.h> provides the PTRACE_GETREGS request.
AC_MSG_CHECKING(for PTRACE_GETREGS)
AC_CACHE_VAL(gdb_cv_have_ptrace_getregs,
[AC_TRY_COMPILE([#include <sys/ptrace.h>],
AC_DEFINE(HAVE_PTRACE_GETREGS)
fi
-dnl See if ptrace.h provides the PTRACE_GETFPXREGS request.
+# See if <sys/ptrace.h> provides the PTRACE_GETFPXREGS request.
AC_MSG_CHECKING(for PTRACE_GETFPXREGS)
AC_CACHE_VAL(gdb_cv_have_ptrace_getfpxregs,
[AC_TRY_COMPILE([#include <sys/ptrace.h>],
AC_DEFINE(HAVE_PTRACE_GETFPXREGS)
fi
+# See if <sys/ptrace.h> provides the PT_GETDBREGS request.
+AC_MSG_CHECKING(for PT_GETDBREGS)
+AC_CACHE_VAL(gdb_cv_have_pt_getdbregs,
+[AC_TRY_COMPILE([#include <sys/types.h>
+#include <sys/ptrace.h>],
+ [PT_GETDBREGS;],
+ [gdb_cv_have_pt_getdbregs=yes],
+ [gdb_cv_have_pt_getdbregs=no])])
+AC_MSG_RESULT($gdb_cv_have_pt_getdbregs)
+if test $gdb_cv_have_pt_getdbregs = yes; then
+ AC_DEFINE(HAVE_PT_GETDBREGS)
+fi
+
+
AC_CHECK_LIB(socket, socketpair)
AC_CHECK_FUNCS(socketpair)
AC_MSG_CHECKING(for member som_addr in struct so_map)
AC_CACHE_VAL(gdb_cv_have_struct_so_map_with_som_members,
[AC_TRY_COMPILE([#include <sys/types.h>
+#ifdef HAVE_NLIST_H
+#include <nlist.h>
+#endif
#include <link.h>],
[struct so_map lm; (void) lm.som_addr;],
gdb_cv_have_struct_so_map_with_som_members=yes,
AC_SUBST(UIOUT_CFLAGS)
AC_ARG_WITH(uiout,
-[ --with-uiout Use new uiout functions intead of *printf's],
+[ --with-uiout Use new uiout functions instead of *printf's],
[case "${withval}" in
yes) want_uiout=true ;;
no) if test $enable_gdbmi = yes; then
# NOTE: If you add to this list, remember to update
# gdb/doc/gdbint.texinfo.
build_warnings="-Wimplicit -Wreturn-type -Wcomment -Wtrigraphs \
--Wformat -Wparentheses -Wpointer-arith"
+-Wformat -Wparentheses -Wpointer-arith -Wuninitialized"
# Up for debate: -Wswitch -Wcomment -trigraphs -Wtrigraphs
# -Wunused-function -Wunused-label -Wunused-variable -Wunused-value
-# -Wchar-subscripts -Wuninitialized -Wtraditional -Wshadow -Wcast-qual
+# -Wchar-subscripts -Wtraditional -Wshadow -Wcast-qual
# -Wcast-align -Wwrite-strings -Wconversion -Wstrict-prototypes
# -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
# -Woverloaded-virtual -Winline -Werror"
# This code just checks for a few cases where we'd like to ignore those
# definitions, even when they're present in the '.mt' file. These cases
# are when --disable-sim is specified, or if the simulator directory is
-# not part of the soruce tree.
+# not part of the source tree.
#
AC_ARG_ENABLE(sim,
[ --enable-sim Link gdb with simulator],
s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
' ${host_makefile_frag}`
# else
-# GDBserver is only useful in a "native" enviroment
+# GDBserver is only useful in a "native" environment
# configdirs=`echo $configdirs | sed 's/gdbserver//'`
fi
changequote([,])
if test x"${GDB_MULTI_ARCH}" != x ; then
AC_DEFINE_UNQUOTED(GDB_MULTI_ARCH, ${GDB_MULTI_ARCH})
fi
-# Warn the user when they use an old pratice
+# Warn the user when they use an old practice
case "${GDB_MULTI_ARCH}" in
"" ) ;;
0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 )
AC_MSG_WARN("GDB: Target is not pure multi-arch") ;;
GDB_MULTI_ARCH_PURE )
if test x"${targetfile}" != x ; then
- AC_MSG_WARN("GDB: Ingoring TM_FILE in ${target_makefile_frag}")
+ AC_MSG_WARN("GDB: Ignoring TM_FILE in ${target_makefile_frag}")
targetfile=""
fi ;;
*) AC_MSG_ERROR("GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}");;