This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] upload/download command
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: "Gdb at Sources dot Redhat dot Com" <gdb at sources dot redhat dot com>
- Date: Mon, 17 Nov 2003 10:26:19 -0500
- Subject: Re: [RFC] upload/download command
- References: <03e601c3ad1e$3b2f0ff0$0202040a@catdog>
On Mon, Nov 17, 2003 at 10:19:44AM -0500, Kris Warkentin wrote:
> Our QNX pdebug protocol supports an upload/download command. This is handy
> for putting binaries onto target system and getting back things like
> corefiles. Andrew had wanted me to start a discussion on the subject.
>
> I would like to keep these things in our protocol but it might be useful to
> generalize the interface out to core gdb. What I'm thinking is that I
> create a general upload/download command that uses a hook into the target's
> code for any special functionality. We could have a general one for native
> targets which would basically be 'copy' (probably not all that useful but
> there for completeness) and just print 'not implemented' for targets which
> don't define the hooks.
Rather don't implement it for native I think... hm, might be easier to
test the core parts if we did.
> Any ideas, comments, suggestions, etc.?
For starters, how about describing how it works in your protocol?
Obviously this could be useful to gdbserver. For mechanics, it may
want to be another target_read_partial()...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer