From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11192 invoked by alias); 11 Nov 2003 21:22:55 -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 11184 invoked from network); 11 Nov 2003 21:22:55 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 11 Nov 2003 21:22:55 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AJfyP-00057c-C0; Tue, 11 Nov 2003 16:22:53 -0500 Date: Tue, 11 Nov 2003 21:22:00 -0000 From: Daniel Jacobowitz To: Michael Elizabeth Chastain Cc: ezannoni@redhat.com, gdb-patches@sources.redhat.com Subject: Re: [RFC/WIP] unit test for separate debug info Message-ID: <20031111212253.GA19636@nevyn.them.org> Mail-Followup-To: Michael Elizabeth Chastain , ezannoni@redhat.com, gdb-patches@sources.redhat.com References: <20031111211924.9D4F94B361@berman.michael-chastain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031111211924.9D4F94B361@berman.michael-chastain.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00224.txt.bz2 On Tue, Nov 11, 2003 at 04:19:24PM -0500, Michael Elizabeth Chastain wrote: > Hi Elena, > > mec> gdb.base/break original executable > mec> gdb.base/break.stripped stripped executable > mec> gdb.base/break.sym debug symbols > mec> gdb.base/break.debuglink output of --add-gnu-debuglink > > eza> gdb.base/break-->original executable > eza> gdb.base/break.stripped-->stripped exec > eza> gdb.base/.debug/break.debug-->debuginfo only > eza> gdb.base/break-->original exec minus debug symbols plus link to the .debug file > > Ah, I was mixing two things together. I definitely prefer the doco > in the format above. That's one thing. I was also adding in my own > preferences for the file names. That's a different thing. > > I like gdb.base/break.sym or gdb.base/break.debug a lot more than > gdb.base/.debug/break.debug. That keeps all the files parallel > instead of some files inside a dot directory. The dot directory is special - GDB knows to search $dir/.debug/ for these files, and that's how it will be used in the real world. I believe it's usually: /usr/lib/libfoo.so /usr/lib/.debug/libfoo.so > break.full # full debugging info > break.stripped # stripped executable > break.sym # symbols > break.ship # break.full - symbols + link to break.sym > break # copy of break.ship Sure, you might build them that way. But you wouldn't ship/install them that way. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer