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 compiler warning in i386bsd-nat.c


Some stopgap for a compiler warning in i386bsd-nat.c.  I'll probably
revisit this file a few times in the near feature.  I hope to devise a
more permanent solution then.

Committed to mainline,

Mark


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

	* i386bsd-nat.c: Update copyright year.
	(CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
	define unconditionally.

Index: i386bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/i386bsd-nat.c,v
retrieving revision 1.23
diff -u -p -r1.23 i386bsd-nat.c
--- i386bsd-nat.c 28 Sep 2003 13:35:44 -0000 1.23
+++ i386bsd-nat.c 15 Mar 2004 22:55:25 -0000
@@ -1,5 +1,6 @@
 /* Native-dependent code for modern i386 BSD's.
-   Copyright 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+
+   Copyright 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -52,14 +53,12 @@ typedef struct fpreg fpregset_t;
    presence, and deal gracefully with their absence.  */
 
 /* Registers we shouldn't try to fetch.  */
-#if !defined (CANNOT_FETCH_REGISTER)
+#undef CANNOT_FETCH_REGISTER
 #define CANNOT_FETCH_REGISTER(regno) cannot_fetch_register (regno)
-#endif
 
 /* Registers we shouldn't try to store.  */
-#if !defined (CANNOT_STORE_REGISTER)
+#undef CANNOT_STORE_REGISTER
 #define CANNOT_STORE_REGISTER(regno) cannot_fetch_register (regno)
-#endif
 
 /* Offset to the gregset_t location where REG is stored.  */
 #define REG_OFFSET(reg) offsetof (gregset_t, reg)


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