From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21226 invoked by alias); 12 Feb 2014 20:11:31 -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 21207 invoked by uid 89); 12 Feb 2014 20:11:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout23.012.net.il Received: from mtaout23.012.net.il (HELO mtaout23.012.net.il) (80.179.55.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2014 20:11:30 +0000 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N0W00E00FNDX600@a-mtaout23.012.net.il> for gdb-patches@sourceware.org; Wed, 12 Feb 2014 22:11:27 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0W00EOHG33SFB0@a-mtaout23.012.net.il>; Wed, 12 Feb 2014 22:11:27 +0200 (IST) Date: Wed, 12 Feb 2014 20:11:00 -0000 From: Eli Zaretskii Subject: Re: GDB 7.7 crashes on LTO-built executable In-reply-to: <87d2ist7ua.fsf@fleche.redhat.com> To: Tom Tromey Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83d2isrt08.fsf@gnu.org> References: <83lhxgs05d.fsf@gnu.org> <83ioskrznz.fsf@gnu.org> <87ob2ct9ua.fsf@fleche.redhat.com> <83ha84ruai.fsf@gnu.org> <87d2ist7ua.fsf@fleche.redhat.com> X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00438.txt.bz2 > From: Tom Tromey > Cc: gdb-patches@sourceware.org > Date: Wed, 12 Feb 2014 13:05:33 -0700 > > Eli> That's true (I see gobs of calls to that function), but all but one of > Eli> these calls are from coff_start_symtab, and the argument 'format' is > Eli> NULL, as expected. There's only one call to record_debugformat from > Eli> the DWARF 2 reader, the one I described in my original message. This > Eli> is expected in a single-objfile program, right? > Yes, I think so, at least if by "single-objfile" you mean "single .o > file", and not the gdb meaning of the term. Yes, I meant a single-source file program, and the objfile created from that source file. > Eli> I think GDB really doesn't know it have read the DWARF 2 info in this > Eli> case. I think it uses the COFF information (which includes line > Eli> table, right?). > > I don't know, but all I mean is that if gdb is creating a symtab, then > there is some code reading some kind of debuginfo to create said symtab; > and this code must necessarily be specific to some debug format and > could therefore record it. Yes, the DWARF 2 debuginfo _is_ recorded, but for a file name that has nothing to do with the name of the source file from which the program was compiled.