From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19187 invoked by alias); 11 Jan 2014 08:56:10 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 19177 invoked by uid 89); 11 Jan 2014 08:56:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout22.012.net.il Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 11 Jan 2014 08:56:07 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MZ800700B7AYM00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Sat, 11 Jan 2014 10:56:04 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MZ8007TVBHFQ590@a-mtaout22.012.net.il>; Sat, 11 Jan 2014 10:56:03 +0200 (IST) Date: Sat, 11 Jan 2014 08:56:00 -0000 From: Eli Zaretskii Subject: Re: GDB 7.6.90 available for testing In-reply-to: <20140108101428.C2280E003F@joel.gnat.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <831u0ec2y6.fsf@gnu.org> References: <20140108101428.C2280E003F@joel.gnat.com> X-IsSubscribed: yes X-SW-Source: 2014-01/txt/msg00305.txt.bz2 > From: Joel Brobecker > Date: Wed, 8 Jan 2014 14:14:28 +0400 (RET) > > I have just finished creating the gdb-7.6.90 pre-release. > It is available for download at the following location: > > ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-7.6.90.tar.bz2 > > A gzip'ed version is also available: gdb-7.6.90.tar.gz. > > Please give it a test if you can and report any problems you might find. The gdbserver part fails to build on MinGW: gcc -O2 -gdwarf-2 -g3 -D__USE_MINGW_ACCESS -I. -I. -I./../common -I./../regformats -I./../ -I./../../include -I./../gnulib/import -Ibuild-gnulib-gdbserver/import -Wall -Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral-Wno-char-subscripts -Werror -DGDBSERVER -c -o agent.o -MT agent.o -MMD -MP -MF .deps/agent.Tpo ../common/agent.c In file included from ./server.h:98, from ../common/agent.c:21: ./target.h:24:27: target/resume.h: No such file or directory ./target.h:25:25: target/wait.h: No such file or directory ./target.h:26:31: target/waitstatus.h: No such file or directory In file included from ./server.h:98, from ../common/agent.c:21: ./target.h:43: error: field `kind' has incomplete type ./target.h:120: warning: "struct target_waitstatus" declared inside parameter list ./target.h:120: warning: its scope is only this definition or declaration, which is probably not what you want ./target.h:512: warning: "struct target_waitstatus" declared inside parameter list In file included from ./server.h:100, from ../common/agent.c:21: ./gdbthread.h:34: error: field `last_resume_kind' has incomplete type ./gdbthread.h:37: error: field `last_status' has incomplete type ../common/agent.c: In function `agent_run_command': ../common/agent.c:240: error: `resume_continue' undeclared (first use in this function) ../common/agent.c:240: error: (Each undeclared identifier is reported only once ../common/agent.c:240: error: for each function it appears in.) ../common/agent.c:278: error: storage size of 'status' isn't known ../common/agent.c:287: error: `resume_stop' undeclared (first use in this function) ../common/agent.c:278: warning: unused variable `status' Makefile:516: recipe for target `agent.o' failed make[4]: *** [agent.o] Error 1 make[4]: Leaving directory `/d/gnu/gdb-7.6.90/gdb/gdbserver' Makefile:1323: recipe for target `subdir_do' failed make[3]: *** [subdir_do] Error 1 This is because of the "-I./../" part on the GCC command line. My version of GCC doesn't like the trailing slash. That slash comes from this snippet in gdbserver/Makefile.in: INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \ -I$(srcdir)/../regformats -I$(srcdir)/../ -I$(INCLUDE_DIR) \ $(INCGNU) If I remove the trailing slash there, the build runs to completion. OK to push the following (with a suitable log entry)? --- gdb/gdbserver/Makefile.in~0 2014-01-08 11:23:36.000000000 +0200 +++ gdb/gdbserver/Makefile.in 2014-01-11 10:49:53.774500000 +0200 @@ -106,7 +106,7 @@ # e.g.: "target/wait.h". # INCLUDE_CFLAGS = -I. -I${srcdir} -I$(srcdir)/../common \ - -I$(srcdir)/../regformats -I$(srcdir)/../ -I$(INCLUDE_DIR) \ + -I$(srcdir)/../regformats -I$(srcdir)/.. -I$(INCLUDE_DIR) \ $(INCGNU) # M{H,T}_CFLAGS, if defined, has host- and target-dependent CFLAGS