From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13289 invoked by alias); 26 Nov 2002 06:34: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 13282 invoked from network); 26 Nov 2002 06:34:13 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 26 Nov 2002 06:34:13 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id IAA24364; Tue, 26 Nov 2002 08:34:01 +0200 (IST) Date: Mon, 25 Nov 2002 22:34:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Jim Blandy cc: gdb-patches@sources.redhat.com Subject: Re: RFC: support debug info in separate files In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-11/txt/msg00638.txt.bz2 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. > + 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. > 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. > +@table @code > +@kindex set debug-file-directory > +@item set debug-file-directory @var{directory} > +Set the global directory where @value{GDBN} searches for separate > +debug files to @var{directory}. > +@end table A "@cindex global debug file directory" here would be good. Thanks!