From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22436 invoked by alias); 5 Jun 2003 19:19:14 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 22396 invoked from network); 5 Jun 2003 19:19:13 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 5 Jun 2003 19:19:13 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h55JJDH05430 for ; Thu, 5 Jun 2003 15:19:13 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h55JJDI14136 for ; Thu, 5 Jun 2003 15:19:13 -0400 Received: from localhost.redhat.com (IDENT:os8YKVh2KbL9MVTMu3bz8HbQ4/im9irc@tooth.toronto.redhat.com [172.16.14.29]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h55JJA630272; Thu, 5 Jun 2003 15:19:11 -0400 Received: by localhost.redhat.com (Postfix, from userid 469) id DBED12C987; Thu, 5 Jun 2003 15:25:19 -0400 (EDT) From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16095.39199.714582.752069@localhost.redhat.com> Date: Thu, 05 Jun 2003 19:19:00 -0000 To: Nick Clifton Cc: Elena Zannoni , gdb-patches@sources.redhat.com Subject: Re: RFC: strip --strip-nondebug In-Reply-To: References: <16095.28727.461421.387212@localhost.redhat.com> X-SW-Source: 2003-06/txt/msg00216.txt.bz2 Nick Clifton writes: > Hi Elena, > > > Nick, cool. Have you tried using gdb with the separate debug info > > resulting from your command? It should work transparently, once you > > set the debug directory, if needed. > > > > (gdb) help set debug-file-directory > > Set the directory where separate debug symbols are searched for. > > Separate debug symbols are first searched for in the same > > directory as the binary, then in the `.debug' subdirectory, > > and lastly at the path of the directory of the binary with > > the global debug-file directory prepended > > Apparently not :-( Is there a good way to watch gdb try to find debug > information and find out what is wrong ? > > Cheers > Nick > Hmm, step through symfile.c:find_separate_debug_file, if the problem seems to be locating the file. If the problem is that the file is found, but the format is not ok, you should see symbol_file_add getting called, with that file as one of the arguments. The you can step through symbol_file_add. Is this Elf/dwarf2 you are testing or something else? I think the gdb stuff was only tested on such a combination, even though it should be generic. elena