From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28228 invoked by alias); 4 Jun 2008 15:20:12 -0000 Received: (qmail 28216 invoked by uid 22791); 4 Jun 2008 15:20:10 -0000 X-Spam-Check-By: sourceware.org Received: from imr2.ericy.com (HELO imr2.ericy.com) (198.24.6.3) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 04 Jun 2008 15:19:49 +0000 Received: from eusrcmw750.eamcs.ericsson.se (eusrcmw750.exu.ericsson.se [138.85.77.50]) by imr2.ericy.com (8.13.1/8.13.1) with ESMTP id m54FJk8b031654; Wed, 4 Jun 2008 10:19:46 -0500 Received: from ecamlmw720.eamcs.ericsson.se ([142.133.1.72]) by eusrcmw750.eamcs.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 4 Jun 2008 10:19:45 -0500 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: Disabling sysroot Date: Wed, 04 Jun 2008 15:20:00 -0000 Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD4C@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04291110@ecamlmw720.eamcs.ericsson.se> <200805141603.35204.pedro@codesourcery.com> <6D19CA8D71C89C43A057926FE0D4ADAA04E1BD49@ecamlmw720.eamcs.ericsson.se> <20080604151313.GA31914@caradoc.them.org> From: "Marc Khouzam" To: "Daniel Jacobowitz" Cc: 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/msg00021.txt.bz2 /dev/null it is. Thanks -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org] Sent: Wed 6/4/2008 11:13 AM To: Marc Khouzam Cc: gdb@sourceware.org Subject: Re: Disabling sysroot =20 On Wed, Jun 04, 2008 at 09:34:02AM -0400, Marc Khouzam wrote: > Hi, >=20 > in the doc it says: >=20 > If you want to use `solib-search-path' instead of=20 > `sysroot', be sure to set `sysroot' to a nonexistent directory to prevent= GDB=20 > from finding your host's libraries. >=20 > Is there a recommended way to turn off sysroot? > I can set it to something like /what/are/the/odds/of/this/dir/actually/ex= isting > 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). --=20 Daniel Jacobowitz CodeSourcery