From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28187 invoked by alias); 5 Jun 2008 16:12:29 -0000 Received: (qmail 28143 invoked by uid 22791); 5 Jun 2008 16:12:27 -0000 X-Spam-Check-By: sourceware.org Received: from aussmtpmrkps320.us.dell.com (HELO aussmtpmrkps320.us.dell.com) (143.166.224.254) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 05 Jun 2008 16:12:04 +0000 X-IronPort-AV: E=Sophos;i="4.27,596,1204524000"; d="scan'208";a="367081898" Received: from unknown (HELO M31.equallogic.com) ([12.110.134.31]) by aussmtpmrkps320.us.dell.com with SMTP; 05 Jun 2008 11:12:03 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18504.4177.281333.464717@gargle.gargle.HOWL> Date: Thu, 05 Jun 2008 16:12:00 -0000 From: Paul Koning To: marc.khouzam@ericsson.com Cc: drow@false.org, eliz@gnu.org, gdb@sourceware.org Subject: RE: Disabling sysroot References: <20080605152259.GA29800@caradoc.them.org> <6D19CA8D71C89C43A057926FE0D4ADAA0429117F@ecamlmw720.eamcs.ericsson.se> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid 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/msg00032.txt.bz2 >>>>> "Marc" == Marc Khouzam writes: >> > It would be even nicer to have a way to 'turn off' sysroot > for >> this case. Something like "unset sysroot". I'm not > sure if >> "unset" is something that GDB supports. >> >> It is, but unsetting sysroot does not mean what you want. Without >> a sysroot, libraries are searched for in the root filesystem on >> the host. You want to actually disable searching by full path; >> gdb has no option for that. Marc> From what I understand, it would be nice if unset sysroot Marc> disabled sysrtoot, while an explicit set sysrtoot "/" be used Marc> to search from the root. But, for the sake of backwards Marc> compatibility, this should probably be left alone and /dev/null Marc> used for sysrtoot to disable it. There should be a user-friendly way to disable sysroot, and that should be on by default in a cross-gdb. paul