From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18253 invoked by alias); 12 Feb 2014 20:08:25 -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 18243 invoked by uid 89); 12 Feb 2014 20:08:24 -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,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout25.012.net.il Received: from mtaout25.012.net.il (HELO mtaout25.012.net.il) (80.179.55.181) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 12 Feb 2014 20:08:23 +0000 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0N0W00M00FMB2000@mtaout25.012.net.il> for gdb-patches@sourceware.org; Wed, 12 Feb 2014 22:07:22 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N0W00E5YFWA5690@mtaout25.012.net.il>; Wed, 12 Feb 2014 22:07:22 +0200 (IST) Date: Wed, 12 Feb 2014 20:08:00 -0000 From: Eli Zaretskii Subject: Re: GDB 7.7 crashes on LTO-built executable In-reply-to: <83ha84ruai.fsf@gnu.org> To: tromey@redhat.com Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <83eh38rt5f.fsf@gnu.org> References: <83lhxgs05d.fsf@gnu.org> <83ioskrznz.fsf@gnu.org> <87ob2ct9ua.fsf@fleche.redhat.com> <83ha84ruai.fsf@gnu.org> X-IsSubscribed: yes X-SW-Source: 2014-02/txt/msg00435.txt.bz2 Some more info, obtained by setting various debug options: With a non-LTO build of the same program, GDB displays this after it finishes reading the symbols and expanding the symtabs: Created primary symtab 0x2125880 for tchmod.c ... qf->lookup_symbol (...) = tchmod.c (tchmod.c is the source file of this program.) But when I do the same with the LTO-compiled executable, the last message is: Created primary symtab 0x21172d0 for C:\Users\eliz\AppData\Local\Temp\ccN8FPgQ.ltrans0.o. ... qf->lookup_symbol (...) = C:\Users\eliz\AppData\Local\Temp\ccN8FPgQ.ltrans0.o