From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30300 invoked by alias); 25 Oct 2009 13:53:23 -0000 Received: (qmail 30284 invoked by uid 22791); 25 Oct 2009 13:53:22 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pz0-f189.google.com (HELO mail-pz0-f189.google.com) (209.85.222.189) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Oct 2009 13:53:18 +0000 Received: by pzk27 with SMTP id 27so5171267pzk.12 for ; Sun, 25 Oct 2009 06:53:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.2.14 with SMTP id 14mr507937wfb.15.1256478797067; Sun, 25 Oct 2009 06:53:17 -0700 (PDT) In-Reply-To: References: <20091022193607.13598.qmail@sourceware.org> <004e01ca53b5$5f9bc330$1ed34990$@u-strasbg.fr> <4AE1CC6E.1070604@vmware.com> <4AE37D44.10905@eagercon.com> <4AE386EF.60809@vmware.com> <4AE3A79A.6060600@vmware.com> From: Hui Zhu Date: Sun, 25 Oct 2009 13:53:00 -0000 Message-ID: Subject: Re: Build failure: src/gdb ChangeLog record.c gcore.c gcore.h To: Michael Snyder Cc: Michael Eager , Pierre Muller , "msnyder@sourceware.org" , "gdb-patches@sourceware.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 X-SW-Source: 2009-10/txt/msg00624.txt.bz2 Hi Michael, If you this way will change the GDB too much. I think move the "record save" cmd together with gcore. I think it can handle this issue too. What do you think? Thanks, Hui On Sun, Oct 25, 2009 at 16:41, Hui Zhu wrote: > $ ./gdb ./a.exe > GNU gdb (GDB) 7.0.50.20091025-cvs > Copyright (C) 2009 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. =A0Type "show copyi= ng" > and "show warranty" for details. > This GDB was configured as "i686-pc-cygwin". > For bug reporting instructions, please see: > ... > Reading symbols from /home/hzhu/gdb/bgdbcygwin/gdb/a.exe...done. > Setting up the environment for debugging gdb. > Function "internal_error" not defined. > Make breakpoint pending on future shared library load? (y or [n]) > [answered N; input not from terminal] > Function "info_command" not defined. > Make breakpoint pending on future shared library load? (y or [n]) > [answered N; input not from terminal] > /home/hzhu/gdb/bgdbcygwin/gdb/.gdbinit:8: Error in sourced command file: > No breakpoint number 0. > (gdb) start > Temporary breakpoint 1 at 0x4010b0: file > /cygdrive/c/study/gcc/gdb/rec/1.c, line 20. > Starting program: /home/hzhu/gdb/bgdbcygwin/gdb/a.exe > [New Thread 3820.0x600] > [New Thread 3820.0x14c] > [New Thread 3820.0xf94] > > Temporary breakpoint 1, main () at /cygdrive/c/study/gcc/gdb/rec/1.c:20 > 20 =A0 =A0 =A0 =A0 =A0 =A0 int =A0 =A0 b =3D 0; > (gdb) gcore > Can't create a corefile > (gdb) > > =A0/* An external target method must build the notes section. =A0*/ > =A0note_data =3D target_make_corefile_notes (obfd, ¬e_size); > > It's target depend. > > It just a error output, better than build error. > > Thanks, > Hui > > > > On Sun, Oct 25, 2009 at 09:19, Michael Snyder wrote: >> Hui Zhu wrote: >>> >>> I try in cygwin with: >>> configure --disable-sid --disable-rda --disable-binutils --disable-gas >>> --disable-ld --disable-gprof --enable-targets=3Dall --enable-64-bits-bfd >>> CFLAGS=3D-g >>> configure --disable-sid --disable-rda --disable-binutils --disable-gas >>> --disable-ld --disable-gprof >>> >>> =A0Build is OK. >>> >>> $ ./gdb >>> GNU gdb (GDB) 7.0.50.20091025-cvs >>> Copyright (C) 2009 Free Software Foundation, Inc. >>> License GPLv3+: GNU GPL version 3 or later >>> >>> This is free software: you are free to change and redistribute it. >>> There is NO WARRANTY, to the extent permitted by law. =A0Type "show cop= ying" >>> and "show warranty" for details. >>> This GDB was configured as "i686-pc-cygwin". >>> For bug reporting instructions, please see: >>> . >>> Setting up the environment for debugging gdb. >>> No symbol table is loaded. =A0Use the "file" command. >>> Make breakpoint pending on future shared library load? (y or [n]) >>> [answered N; input not from terminal] >>> No symbol table is loaded. =A0Use the "file" command. >>> Make breakpoint pending on future shared library load? (y or [n]) >>> [answered N; input not from terminal] >>> /home/hzhu/gdb/bgdbcygwin/gdb/.gdbinit:8: Error in sourced command file: >>> No breakpoint number 0. >>> (gdb) >>> >>> I think in gcore.o, there is not some host-special code. =A0Just some t= arget >>> hook. >>> I suggest mv gcore.o to makefile.in and add code to check return value >>> in record.o when call gcore function. >>> What do you think about it? >> >> Can't be done. =A0gcore depends on some callbacks that >> are not implemented for cygwin. >> >