Re: [PATCH] Make file transfer commands work with all (native) targets. (was: Re: [PATCH 04/16] push remote_desc into struct remote_state)

Eli Zaretskii
2013-06-28T17:44:44Z

> Date: Fri, 28 Jun 2013 17:33:58 +0100
> From: Pedro Alves <palves@redhat.com>
> CC: gdb-patches@sourceware.org
>
> > Pedro> remote_file_get could nowadays be using the target_fileio_XXX methods
> > Pedro> instead of remote_hostio_XXX, and therefore the command could be
> > Pedro> generalized to work with all targets.
>
> Actually, doing this is quite easy, so I went ahead, in the name
> of local/remote feature parity. We can connect to a local gdbserver
> and do file transfer in the local system; there seems to be no
> reason we can't do it with native debugging too.
>
> WDYT?

What is the use case?

Without a good use case, having "remote get" serve like a poor man's
'cp' is confusing, IMO.