From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9249 invoked by alias); 15 Mar 2004 23:02:45 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9242 invoked from network); 15 Mar 2004 23:02:44 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 15 Mar 2004 23:02:44 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i2FN2grp000345 for ; Tue, 16 Mar 2004 00:02:42 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i2FN2gSL026737 for ; Tue, 16 Mar 2004 00:02:42 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i2FN2glv026734; Tue, 16 Mar 2004 00:02:42 +0100 (CET) Date: Fri, 19 Mar 2004 00:09:00 -0000 Message-Id: <200403152302.i2FN2glv026734@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix compiler warning in i386bsd-nat.c X-SW-Source: 2004-03/txt/msg00346.txt.bz2 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 * 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) From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9249 invoked by alias); 15 Mar 2004 23:02:45 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 9242 invoked from network); 15 Mar 2004 23:02:44 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (213.93.115.144) by sources.redhat.com with SMTP; 15 Mar 2004 23:02:44 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i2FN2grp000345 for ; Tue, 16 Mar 2004 00:02:42 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6) with ESMTP id i2FN2gSL026737 for ; Tue, 16 Mar 2004 00:02:42 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6p3/8.12.6/Submit) id i2FN2glv026734; Tue, 16 Mar 2004 00:02:42 +0100 (CET) Date: Mon, 15 Mar 2004 23:02:00 -0000 Message-ID: <200403152302.i2FN2glv026734@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix compiler warning in i386bsd-nat.c X-SW-Source: 2004-03.o/txt/msg00346.txt Message-ID: <20040315230200.6RFEuJM_EM-r4Hm0-hbg3Ib_L5GsrXo1ubX6-iI6BiQ@z> 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 * 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)