This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix spurious GDB warning on OpenBSD/i386


Without this patch a native OpenBSD/i386 GDB will emit a spurious
warning.

Committed.

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
	i386nbsd_sc_pc_offset on OpenBSD too.

Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.14
diff -u -p -r1.14 i386bsd-nat.c
--- i386bsd-nat.c 15 Jun 2002 13:54:22 -0000 1.14
+++ i386bsd-nat.c 30 Jun 2002 16:59:24 -0000
@@ -397,7 +397,7 @@ _initialize_i386bsd_nat (void)
 #if defined (__FreeBSD_version) && __FreeBSD_version >= 400011
   extern int i386fbsd4_sc_pc_offset;
 #define SC_PC_OFFSET i386fbsd4_sc_pc_offset
-#elif defined (NetBSD) || defined (__NetBSD_Version__)
+#elif defined (NetBSD) || defined (__NetBSD_Version__) || defined (OpenBSD)
   extern int i386nbsd_sc_pc_offset;
 #define SC_PC_OFFSET i386nbsd_sc_pc_offset
 #else


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]