From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2340 invoked by alias); 27 Aug 2002 22:28:39 -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 2324 invoked from network); 27 Aug 2002 22:28:38 -0000 Received: from unknown (HELO localhost.redhat.com) (66.30.197.194) by sources.redhat.com with SMTP; 27 Aug 2002 22:28:38 -0000 Received: by localhost.redhat.com (Postfix, from userid 469) id D400A10AAA; Tue, 27 Aug 2002 18:26:43 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15723.64675.694145.682621@localhost.redhat.com> Date: Tue, 27 Aug 2002 15:32:00 -0000 To: tromey@redhat.com Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: RFA: osabi.c correctness patch (Was: new build failure) In-Reply-To: <87d6s4hwwy.fsf_-_@fleche.redhat.com> References: <87n0r8i35t.fsf@fleche.redhat.com> <15723.52602.741154.488098@localhost.redhat.com> <87d6s4hwwy.fsf_-_@fleche.redhat.com> X-SW-Source: 2002-08/txt/msg00922.txt.bz2 Oh, right. I hope Joel doesn't mind. I think your patch is ok, and fairly obvious. Elena Tom Tromey writes: > >>>>> "Elena" == Elena Zannoni writes: > > >> ../../src/gdb/breakpoint.c:2732: warning: implicit declaration of function `copy_command_lines' > > Elena> I am checking in a fix... hold on. > > FYI, it looks like the problem was caused by an incomplete commit of > this patch: > > 2002-08-26 Joel Brobecker > > * cli/cli-script.c (copy_command_lines): New function. > * defs.h (copy_command_lines): Export. > > Your fix is fine by me, but the original author(s) may disagree. > > I'm still working on getting gdb to build with -Werror. > I started by turning off the TUI; even with a patch for the readline > problem I ran into another warning. I don't actually use the TUI, and > I want to use a new gdb today, so disabling it was expedient. > > After this I got an error building osabi.c. strcmp was implicitly > defined. Patch appended. The Makefile fix also includes a minor > whitespace bug pointed out by the makefile mode in Emacs. > > Ok to commit? > > Incidentally: gdb_string.h relies on some defines brought in by > config.h. But not every file includes config.h first. For instance, > ada-lang.c incorrectly includes some files before defs.h (I found this > by accident). > > There's another build bug after this one. > > Tom > > > Index: ChangeLog > from Tom Tromey > > * Makefile.in (osabi.o): Update dependencies. > * osabi.c: Include gdb_string.h. > > Index: Makefile.in > =================================================================== > RCS file: /cvs/src/src/gdb/Makefile.in,v > retrieving revision 1.250 > diff -u -r1.250 Makefile.in > --- Makefile.in 27 Aug 2002 19:06:34 -0000 1.250 > +++ Makefile.in 27 Aug 2002 20:25:40 -0000 > @@ -1740,7 +1740,7 @@ > $(gdbtypes_h) $(language_h) $(objfiles_h) $(symfile_h) $(symtab_h) \ > $(target_h) $(value_h) $(gdb_string_h) $(wrapper_h) $(cp_abi_h) > > -osabi.o: osabi.c $(defs_h) $(BFD_SRC)/elf-bfd.h > +osabi.o: osabi.c $(gdb_string_h) $(defs_h) $(BFD_SRC)/elf-bfd.h > > go32-nat.o: go32-nat.c $(defs_h) $(inferior_h) $(gdb_wait_h) $(gdbcore_h) \ > $(command_h) $(floatformat_h) $(target_h) i387-tdep.h $(regcache_h) > @@ -1753,7 +1753,7 @@ > > gnu-v3-abi.o: gnu-v3-abi.c $(defs_h) $(value_h) $(cp_abi_h) $(demangle_h) \ > $(gdb_assert_h) $(gdb_string_h) > - > + > h8300-tdep.o: h8300-tdep.c $(defs_h) $(frame_h) $(symtab_h) $(dis_asm_h) \ > $(gdbcmd_h) $(gdbtypes_h) $(gdbcore_h) $(gdb_string_h) $(value_h) \ > $(regcache_h) > Index: osabi.c > =================================================================== > RCS file: /cvs/src/src/gdb/osabi.c,v > retrieving revision 1.6 > diff -u -r1.6 osabi.c > --- osabi.c 18 Aug 2002 17:59:57 -0000 1.6 > +++ osabi.c 27 Aug 2002 20:25:41 -0000 > @@ -19,6 +19,7 @@ > Boston, MA 02111-1307, USA. */ > > #include "defs.h" > +#include "gdb_string.h" > #include "osabi.h" > > #include "elf-bfd.h"