From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27949 invoked by alias); 9 May 2008 22:10:20 -0000 Received: (qmail 27940 invoked by uid 22791); 9 May 2008 22:10:19 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate3.de.ibm.com (HELO mtagate3.de.ibm.com) (195.212.29.152) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 09 May 2008 22:09:57 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.8/8.13.8) with ESMTP id m49M9sJb164704 for ; Fri, 9 May 2008 22:09:54 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v8.7) with ESMTP id m49M9s892650310 for ; Sat, 10 May 2008 00:09:54 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m49M9rMn000991 for ; Sat, 10 May 2008 00:09:54 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m49M9rWN000988; Sat, 10 May 2008 00:09:53 +0200 Message-Id: <200805092209.m49M9rWN000988@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Sat, 10 May 2008 00:09:53 +0200 Subject: Re: [rfc] Retrieve libraries from remote target To: eliz@gnu.org Date: Sat, 10 May 2008 12:48:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: from "Eli Zaretskii" at May 09, 2008 11:48:52 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2008-05/txt/msg00331.txt.bz2 Eli Zaretskii wrote: > > Date: Fri, 9 May 2008 21:28:46 +0200 (CEST) > > From: "Ulrich Weigand" > > Cc: gdb-patches@sourceware.org > > > > > > The user interface is simple: if the path specified as "sysroot" starts > > > > with the string "remote:", the sysroot location is assumed to be on the > > > > remote target. > > > > > > What if my _local_ "sysroot" happens to begin with the literal string > > > "remote:"? How can I tell GDB this is not a remote location? > > > > You cannot. Is this limitation a real problem? > > If it can happen in real usage, then I think it's a real problem. Well, in real usage the sysroot tends to be specified as absolute path, so that problem cannot occur. If you do want to specify the sysroot as relative path, there typically are multiple ways to identify the same directory, e.g. on Unix you could always use "./remote:" instead of "remote:" ... (I am not 100% certain that something like that is possible on any host OS supported by GDB.) But I'm certainly open to alternative interfaces. Do you have suggestions for a different approach? Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com