From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26110 invoked by alias); 4 Jun 2008 15:13:36 -0000 Received: (qmail 26101 invoked by uid 22791); 4 Jun 2008 15:13:36 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 04 Jun 2008 15:13:16 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 6C79C98371; Wed, 4 Jun 2008 15:13:14 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 43BE09809E; Wed, 4 Jun 2008 15:13:14 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1K3ufp-0008JJ-2x; Wed, 04 Jun 2008 11:13:13 -0400 Date: Wed, 04 Jun 2008 15:13:00 -0000 From: Daniel Jacobowitz To: Marc Khouzam Cc: gdb@sourceware.org Subject: Re: Disabling sysroot Message-ID: <20080604151313.GA31914@caradoc.them.org> Mail-Followup-To: Marc Khouzam , gdb@sourceware.org References: <6D19CA8D71C89C43A057926FE0D4ADAA04291110@ecamlmw720.eamcs.ericsson.se> <200805141603.35204.pedro@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD49@ecamlmw720.eamcs.ericsson.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD49@ecamlmw720.eamcs.ericsson.se> User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00020.txt.bz2 On Wed, Jun 04, 2008 at 09:34:02AM -0400, Marc Khouzam wrote: > Hi, > > in the doc it says: > > If you want to use `solib-search-path' instead of > `sysroot', be sure to set `sysroot' to a nonexistent directory to prevent GDB > from finding your host's libraries. > > Is there a recommended way to turn off sysroot? > I can set it to something like /what/are/the/odds/of/this/dir/actually/existing > But it is not very elegant. I use /dev/null, which will never be a directory. There's no way to disable sysroot; setting it to empty is the same as not setting it at all, i.e. use the host's libraries. > Or is setting sysroot to anything not starting with a / sufficient? A relative path may be a valid sysroot; GDB will search from its current directory (there's no special check for absolute paths). -- Daniel Jacobowitz CodeSourcery