From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20129 invoked by alias); 12 Oct 2009 19:12:14 -0000 Received: (qmail 20121 invoked by uid 22791); 12 Oct 2009 19:12:13 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 12 Oct 2009 19:12:08 +0000 Received: from spaceape12.eur.corp.google.com (spaceape12.eur.corp.google.com [172.28.16.146]) by smtp-out.google.com with ESMTP id n9CJC5NY021549 for ; Mon, 12 Oct 2009 20:12:05 +0100 Received: from pxi32 (pxi32.prod.google.com [10.243.27.32]) by spaceape12.eur.corp.google.com with ESMTP id n9CJC2Za016955 for ; Mon, 12 Oct 2009 12:12:03 -0700 Received: by pxi32 with SMTP id 32so8492810pxi.16 for ; Mon, 12 Oct 2009 12:12:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.141.21 with SMTP id o21mr516353rvd.292.1255374722498; Mon, 12 Oct 2009 12:12:02 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Oct 2009 19:12:00 -0000 Message-ID: Subject: Re: [RFA]: no "no debugging symbols found" for separate debug From: Doug Evans To: Tristan Gingold Cc: gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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/msg00245.txt.bz2 On Mon, Oct 12, 2009 at 12:04 PM, Doug Evans wrote: > > On Mon, Oct 12, 2009 at 6:57 AM, Tristan Gingold wr= ote: >> >> Hi, >> >> when a stripped executable with a separate debug file is loaded, gdb pri= nts "no debugging symbols found". >> I think this is confusing and this was not printed in gdb 6.8 >> >> The reason is that only the objfile is checked, not the separate debug f= ile. >> >> This patch fixes that and add a test in the sepdebug.exp file. >> >> Tristan. >> >> 2009-10-12 =A0Tristan Gingold =A0 >> >> =A0 =A0 =A0 =A0* objfiles.c (objfile_has_symbols): New function. >> =A0 =A0 =A0 =A0* objfiles.h (objfile_has_symbols): Add prototype. >> =A0 =A0 =A0 =A0* symfile.c (symbol_file_add_with_addrs_or_offsets): Call >> =A0 =A0 =A0 =A0objfile_has_symbols. >> =A0 =A0 =A0 =A0(reread_symbols): Ditto. >> >> testsuite/ >> 2009-10-12 =A0Tristan Gingold =A0 >> >> =A0 =A0 =A0 =A0* gdb.base/sepdebug.exp: Check debug info are found. >> > > Thanks.=A0 Tom pointed this out and it's on my todo list.=A0 Or was. > > This is ok with me. > =A0Thanks again. > Apologies for the resend. Gmail sent the reply as text/html. Sigh. One nit: + or throught its the separate debug file. */ s/throught its the/through its/