From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13237 invoked by alias); 5 Jan 2007 19:20:54 -0000 Received: (qmail 13227 invoked by uid 22791); 5 Jan 2007 19:20:53 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 05 Jan 2007 19:20:45 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H2ucN-0000wI-0Z; Fri, 05 Jan 2007 14:20:43 -0500 Date: Fri, 05 Jan 2007 19:20:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: gdb-patches@sourceware.org Subject: Re: [rfa] Rename "set solib-absolute-prefix" to "set sysroot", improve docs Message-ID: <20070105192042.GB1031@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , gdb-patches@sourceware.org References: <20070105174507.GA31679@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-01/txt/msg00201.txt.bz2 On Fri, Jan 05, 2007 at 08:58:53PM +0200, Eli Zaretskii wrote: > > Date: Fri, 5 Jan 2007 12:45:07 -0500 > > From: Daniel Jacobowitz > > Cc: Eli Zaretskii > > > > 2007-01-05 Daniel Jacobowitz > > > > * gdb.texinfo (Commands to specify files): Describe > > "set sysroot" and "show sysroot". > > (Using the `gdbserver' program): Lowercase argument > > to @var. Expand description of setting up GDB on the > > host. > > Fine with me, but: > > > +@item set sysroot @var{path} > > +If this variable is set, @value{GDBN} will use @var{path} as the > > The "set" commands don't set variables, at least we don't usually > explain them like that. So just delete the first clause, and use this for the intro sentence? Use @var{path} as the system root for the program being debugged. > Btw, what would this command do for Windows-style C:/foo/bar file > names? Would it work as users expect? Using a Windows path as the system root, to cross debug a Unix target, will work fine. It won't do anything especially sensible if you try to apply a system root to Windows full paths, I'm afraid - the same is true for sysroots in GCC, and I don't even know what I'd expect it to do. Probably /sysroot/c/foo/bar? If someone wants to add Windows support I'd be happy to review patches, but I don't believe a Windows targeted GDB will reach this code. -- Daniel Jacobowitz CodeSourcery