diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-10-13 00:35:48 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-10-13 00:35:48 +0000 |
commit | 1dee2761ad89b43593f2a5fac932828189a56837 (patch) | |
tree | 224698eaf8bcfa0f6cb03711c8027362d9892c92 /gdb/i386v-nat.c | |
parent | a148e678b2caab6bfec834034b3db41551781a0b (diff) | |
download | gdb-1dee2761ad89b43593f2a5fac932828189a56837.zip gdb-1dee2761ad89b43593f2a5fac932828189a56837.tar.gz gdb-1dee2761ad89b43593f2a5fac932828189a56837.tar.bz2 |
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 <sys/debugreg.h> will result in an error.
With luck, these losers will get their act together and we can trash
this hack in the near future.
Diffstat (limited to 'gdb/i386v-nat.c')
-rw-r--r-- | gdb/i386v-nat.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c index 250b475..5618687 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 <sys/ioctl.h> #include <fcntl.h> + +/* FIXME: The following used to be just "#include <sys/debugreg.h>", but + * the the Linux 2.1.x kernel and glibc 2.0.x are not in sync; including + * <sys/debugreg.h> 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 <sys/debugreg.h> +# ifdef HAVE_ASM_DEBUGREG_H +# include <asm/debugreg.h> +# else +# include <sys/debugreg.h> +# endif #endif #include <sys/file.h> |