From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12237 invoked by alias); 17 Nov 2003 15:26:21 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12229 invoked from network); 17 Nov 2003 15:26:20 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 17 Nov 2003 15:26:20 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1ALlGd-0002xq-J4 for ; Mon, 17 Nov 2003 10:26:19 -0500 Date: Mon, 17 Nov 2003 15:26:00 -0000 From: Daniel Jacobowitz To: "Gdb@Sources.Redhat.Com" Subject: Re: [RFC] upload/download command Message-ID: <20031117152619.GA10659@nevyn.them.org> Mail-Followup-To: "Gdb@Sources.Redhat.Com" References: <03e601c3ad1e$3b2f0ff0$0202040a@catdog> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <03e601c3ad1e$3b2f0ff0$0202040a@catdog> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-11/txt/msg00123.txt.bz2 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