From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10887 invoked by alias); 1 Oct 2002 16:30: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 10874 invoked from network); 1 Oct 2002 16:30:44 -0000 Received: from unknown (HELO touchme.toronto.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 1 Oct 2002 16:30:44 -0000 Received: from localhost.redhat.com (to-dhcp51.toronto.redhat.com [172.16.14.151]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 219C48001BB for ; Tue, 1 Oct 2002 12:30:44 -0400 (EDT) Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id BD0303DD5; Tue, 1 Oct 2002 12:30:46 -0400 (EDT) Message-ID: <3D99CDB6.2030205@redhat.com> Date: Tue, 01 Oct 2002 09:30:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020824 X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Carlton Cc: gdb-patches@sources.redhat.com Subject: Re: [rfa] more all-target -Werror patches References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00007.txt.bz2 > Here are the last patches for getting GDB to build on my machine on > all targets with -Werror if appropriate. > > OK to commit? The gdb_string ones are pretty obvious; I'm not sure > why GCC is issuing a warning on remote-sds.c that requires me to > insert a stray semicolon to quell it, but doing so shouldn't hurt > anything. > > David Carlton > carlton@math.stanford.edu > > 2002-09-30 David Carlton > > * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h. > * ppc-sysv-tdep.c: #include "gdb_string.h". > * remote-sds.c (getmessage): Add semicolon after 'retry' label to > pacify GCC. Yes, definitly. Andrew > Index: Makefile.in > =================================================================== > RCS file: /cvs/src/src/gdb/Makefile.in,v > retrieving revision 1.262.2.7 > diff -u -p -r1.262.2.7 Makefile.in > --- Makefile.in 27 Sep 2002 20:03:04 -0000 1.262.2.7 > +++ Makefile.in 30 Sep 2002 18:47:59 -0000 > @@ -1978,7 +1978,7 @@ ppc-linux-tdep.o: ppc-linux-tdep.c $(def > $(symtab_h) $(target_h) $(gdbcore_h) $(gdbcmd_h) $(symfile_h) \ > $(objfiles_h) $(regcache_h) $(value_h) $(solib_svr4_h) $(ppc_tdep_h) > ppc-sysv-tdep.o: ppc-sysv-tdep.c $(defs_h) $(gdbcore_h) $(inferior_h) \ > - $(regcache_h) $(value_h) $(ppc_tdep_h) > + $(regcache_h) $(value_h) $(gdb_string_h) $(ppc_tdep_h) > ppcbug-rom.o: ppcbug-rom.c $(defs_h) $(gdbcore_h) $(target_h) $(monitor_h) \ > $(serial_h) $(regcache_h) > ppcnbsd-nat.o: ppcnbsd-nat.c $(defs_h) $(inferior_h) $(ppc_tdep_h) \ > > Index: ppc-sysv-tdep.c > =================================================================== > RCS file: /cvs/src/src/gdb/ppc-sysv-tdep.c,v > retrieving revision 1.1 > diff -u -p -r1.1 ppc-sysv-tdep.c > --- ppc-sysv-tdep.c 30 May 2002 01:21:51 -0000 1.1 > +++ ppc-sysv-tdep.c 30 Sep 2002 18:48:17 -0000 > @@ -25,6 +25,7 @@ > #include "inferior.h" > #include "regcache.h" > #include "value.h" > +#include "gdb_string.h" > > #include "ppc-tdep.h" > > Index: remote-sds.c > =================================================================== > RCS file: /cvs/src/src/gdb/remote-sds.c,v > retrieving revision 1.20 > diff -u -p -r1.20 remote-sds.c > --- remote-sds.c 10 Feb 2002 04:08:42 -0000 1.20 > +++ remote-sds.c 30 Sep 2002 18:45:17 -0000 > @@ -978,6 +978,7 @@ getmessage (unsigned char *buf, int fore > /* Try the whole thing again. */ > retry: > /* need to do something here */ > + ; > } > > /* We have tried hard enough, and just can't receive the packet. Give up. */ >