diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-03-31 18:09:03 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-03-31 18:09:03 +0000 |
commit | 0afdd43759e75acf6c34338ac95d406aad497a08 (patch) | |
tree | c39e6549935fbcbd99f1edbcbe416b3b1882ed60 /gdb/configure.in | |
parent | 4bcc394469c492857bf7b70a32338cdde27c108d (diff) | |
download | gdb-0afdd43759e75acf6c34338ac95d406aad497a08.zip gdb-0afdd43759e75acf6c34338ac95d406aad497a08.tar.gz gdb-0afdd43759e75acf6c34338ac95d406aad497a08.tar.bz2 |
* i386bsd-nat.c: Include "gdb_assert.h".
[HAVE_PT_GETDBREGS] (DBREG_DRX): Define if not
already defined.
[HAVE_PT_GETDBREGS] (i386bsd_dr_set, i386bsd_dr_set_control,
i386bsd_dr_set_addr, i386bsd_dr_reset_addr,
i386bsd_dr_get_status): New functions.
* config/i386/nm-fbsd.h [HAVE_PT_GETDBREGS]
(I386_USE_GENERIC_WATCHPOINTS): Define.
Include "i386/nm-i386.h".
(I386_DR_LOW_SET_CONTROL, I386_DR_LOW_SET_ADDR,
I386_DR_LOW_RESET_ADDR, I386_DR_LOW_GET_STATUS): New macros.
(i386bsd_dr_set_control, i386bsd_dr_set_addr,
i386bsd_dr_reset_addr, i386bsd_dr_get_status): New prototypes.
* acconfig.h (HAVE_PT_GETDBREGS): New configure macro.
* configure.in: Cleanup a few comments. Check for PT_GETDBREGS
ptrace request.
* config.in, configure: Regenerate.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index d11b563..8bbcb18 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -135,7 +135,7 @@ AC_CHECK_FUNCS(setpgid sbrk sigaction isascii bzero bcopy btowc poll sigprocmask 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;], @@ -150,7 +150,7 @@ if test $gdb_cv_struct_reg_r_gs = yes; then 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>], @@ -162,7 +162,7 @@ if test $gdb_cv_have_ptrace_getregs = yes; then 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>], @@ -174,6 +174,20 @@ if test $gdb_cv_have_ptrace_getfpxregs = yes; then 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) |