From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27996 invoked by alias); 10 Dec 2002 03:16:40 -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 27908 invoked from network); 10 Dec 2002 03:16:36 -0000 Received: from unknown (HELO zenia.red-bean.com) (66.244.67.22) by sources.redhat.com with SMTP; 10 Dec 2002 03:16:36 -0000 Received: from zenia.red-bean.com (localhost.localdomain [127.0.0.1]) by zenia.red-bean.com (8.12.5/8.12.5) with ESMTP id gBA2uD5h030729; Mon, 9 Dec 2002 21:56:14 -0500 Received: (from jimb@localhost) by zenia.red-bean.com (8.12.5/8.12.5/Submit) id gBA2uB9w030725; Mon, 9 Dec 2002 21:56:11 -0500 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: RFC: support debug info in separate files References: From: Jim Blandy Date: Mon, 09 Dec 2002 19:55:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.92 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-12/txt/msg00313.txt.bz2 Eli Zaretskii writes: > On 25 Nov 2002, Jim Blandy wrote: > > > This patch, written by Alexander Larsson, allows GDB to use debug info > > that has been extracted into a separate executable file, using the > > "strip -f" command as provided in Ulrich Drepper's elfutils. > > Does that mean this feature is not supported by GNU `strip'? If so, this > should be reflected in the docs. On rereading I think the docs should be a bit more detailed about all that, yeah. > > + debugfile = alloca (strlen (debug_file_directory) + 1 > > + + strlen (dir) > > + + strlen (".debug/") > > + + strlen (basename) > > + + 1); > > `.debug' is an invalid file name on DOS 8+3 filesystems (leading dots are > not allowed). For the benefit of users of the DJGPP port of GDB, I > suggest to allow an additional name, `_debug', as a substitute. Thus, > conditioned on __MSDOS__, GDB would look for `_debug' subdirectory if > `.debug' does not exist. I'm reluctant to put #if __MSDOS__ in there directly. Would it be appropriate to #define something in xm-go32.h, which could be given a default value of ".debug" in symfile.c? > > diff -u -r1.131 gdb.texinfo > > --- gdb/doc/gdb.texinfo 11 Oct 2002 16:13:15 -0000 1.131 > > +++ gdb/doc/gdb.texinfo 26 Nov 2002 03:42:46 -0000 > > The doco patch is approved, but please add at least one index entry that > leads to this information. Something like > > @cindex separate debug info file > > sounds appropriate. Of course --- thanks for pointing out that omission.