This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [rfc] Retrieve libraries from remote target
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: eliz at gnu dot org
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 10 May 2008 00:09:53 +0200 (CEST)
- Subject: Re: [rfc] Retrieve libraries from remote target
Eli Zaretskii wrote:
> > Date: Fri, 9 May 2008 21:28:46 +0200 (CEST)
> > From: "Ulrich Weigand" <uweigand@de.ibm.com>
> > 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