Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix compiler warning in i386bsd-nat.c
  2004-03-19  0:09 [PATCH] Fix compiler warning in i386bsd-nat.c Mark Kettenis
@ 2004-03-15 23:02 ` Mark Kettenis
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Kettenis @ 2004-03-15 23:02 UTC (permalink / raw)
  To: gdb-patches

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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Fix compiler warning in i386bsd-nat.c
@ 2004-03-19  0:09 Mark Kettenis
  2004-03-15 23:02 ` Mark Kettenis
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Kettenis @ 2004-03-19  0:09 UTC (permalink / raw)
  To: gdb-patches

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)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-15 23:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-19  0:09 [PATCH] Fix compiler warning in i386bsd-nat.c Mark Kettenis
2004-03-15 23:02 ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox