This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Remove Linux-specific stuff from i386v-nat.c
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 15 Jun 2002 15:47:54 +0200 (CEST)
- Subject: [PATCH] Remove Linux-specific stuff from i386v-nat.c
Committed.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
and associated comment. They no longer make any sense, since we
don't use this file anymore on Linux.
Index: i386v-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386v-nat.c,v
retrieving revision 1.9
diff -u -p -r1.9 i386v-nat.c
--- i386v-nat.c 24 Feb 2002 22:31:19 -0000 1.9
+++ i386v-nat.c 15 Jun 2002 13:46:35 -0000
@@ -46,19 +46,8 @@
#include <sys/ioctl.h>
#include <fcntl.h>
-
-/* FIXME: 1998-10-21/jsm: The following used to be just "#include
- <sys/debugreg.h>", but the the Linux kernel (version 2.1.x) 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. */
-
#ifdef TARGET_HAS_HARDWARE_WATCHPOINTS
-#ifdef HAVE_ASM_DEBUGREG_H
-#include <asm/debugreg.h>
-#else
#include <sys/debugreg.h>
-#endif
#endif
#include <sys/file.h>