From: Jason Molenda Date: Tue, 13 Oct 1998 00:35:48 +0000 (+0000) Subject: 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1dee2761ad89b43593f2a5fac932828189a56837;p=binutils-gdb.git 1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com) * configure.in: Check for sys/debugreg.h, asm/debugreg.h. * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not present. This is to work around a conflict where the Linux 2.1.x kernel and glibc 2.0.x are not in sync; including will result in an error. With luck, these losers will get their act together and we can trash this hack in the near future. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b6e3b6d7db4..d6983194229 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +1998-10-12 Jason Molenda (jsm@bugshack.cygnus.com) + + * configure.in: Check for sys/debugreg.h, asm/debugreg.h. + * i386v-nat.c: Include asm/debugreg.h, sys/debugreg.h if it is not + present. + Sun Oct 11 12:08:07 1998 Peter Schauer * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust the diff --git a/gdb/config.in b/gdb/config.in index 4491be80c03..088d438e002 100644 --- a/gdb/config.in +++ b/gdb/config.in @@ -199,6 +199,9 @@ /* Define if you have the header file. */ #undef HAVE_ARGZ_H +/* Define if you have the header file. */ +#undef HAVE_ASM_DEBUGREG_H + /* Define if you have the header file. */ #undef HAVE_CTYPE_H diff --git a/gdb/configure b/gdb/configure index d2af77f8399..ad7f6313415 100755 --- a/gdb/configure +++ b/gdb/configure @@ -21,12 +21,10 @@ ac_help="$ac_help --enable-build-warnings Enable compiler warnings if gcc is used" ac_help="$ac_help --with-mmalloc Use memory mapped malloc package" -# start-sanitize-carp ac_help="$ac_help --enable-carp Configure alternative readaptive paradigm " ac_help="$ac_help --enable-targets alternative target configurations" -# end-sanitize-carp ac_help="$ac_help --enable-ide Enable IDE support" ac_help="$ac_help @@ -3138,7 +3136,7 @@ for ac_hdr in ctype.h curses.h endian.h libintl.h limits.h link.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ string.h strings.h sys/procfs.h sys/ptrace.h sys/reg.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ - wchar.h wctype.h + wchar.h wctype.h asm/debugreg.h do ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 diff --git a/gdb/configure.in b/gdb/configure.in index bf4bf20c266..204a1603cd1 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -72,7 +72,7 @@ AC_CHECK_HEADERS(ctype.h curses.h endian.h libintl.h limits.h link.h \ memory.h objlist.h ptrace.h sgtty.h stddef.h stdlib.h \ string.h strings.h sys/procfs.h sys/ptrace.h sys/reg.h \ term.h termio.h termios.h unistd.h wait.h sys/wait.h \ - wchar.h wctype.h) + wchar.h wctype.h asm/debugreg.h) AC_HEADER_STAT diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c index 250b4756989..5618687a689 100644 --- a/gdb/i386v-nat.c +++ b/gdb/i386v-nat.c @@ -1,5 +1,5 @@ /* Intel 386 native support for SYSV systems (pre-SVR4). - Copyright (C) 1988, 1989, 1991, 1992, 1994, 1996 Free Software Foundation, Inc. + Copyright (C) 1988, 89, 91, 92, 94, 96, 1998 Free Software Foundation, Inc. This file is part of GDB. @@ -43,8 +43,20 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include + +/* FIXME: The following used to be just "#include ", but + * the the Linux 2.1.x kernel and glibc 2.0.x are not in sync; including + * will result in an error. With luck, these losers + * will get their act together and we can trash this hack in the near future. + * --jsm 1998-10-21 + */ + #ifdef TARGET_HAS_HARDWARE_WATCHPOINTS -#include +# ifdef HAVE_ASM_DEBUGREG_H +# include +# else +# include +# endif #endif #include