From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13554 invoked by alias); 18 Jan 2002 00:27:59 -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 13520 invoked from network); 18 Jan 2002 00:27:56 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by sources.redhat.com with SMTP; 18 Jan 2002 00:27:56 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 94ADF3D48; Thu, 17 Jan 2002 19:27:55 -0500 (EST) Message-ID: <3C476C0B.90009@cygnus.com> Date: Thu, 17 Jan 2002 16:27:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.7) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: Andrew Cagney Cc: gdb@sources.redhat.com Subject: Re: A copy/save command ... References: <3C341E2D.6050009@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00202.txt.bz2 > Hello, > > To toss out an idea. One of those oft mentioned missing features is a command to read/write binary data to/from GDB's target memory. There is the load command, but that works on object files (readable via BFD). > > Anyway, I've two vague thoughts on the syntax/semantics: > > 1. (gdb) copy > > The result of is written to the raw file. This expoits the fact that GDB stores an expression in target form in host memory. Consequently, the copy command just writes that raw data to the file. > > > 2. (gdb) copy
> or (gdb) copy/
> > or similar. A more traditional
/ approach. ``copy/'' comes from ``x/''. First, lets forget I suggested ``copy'' :-) The next thought was ``image load'' et.al. I think this overlaps the existing ``load'' command so, intead of having two very similar commands the load could just be tweeked as needed. The next was a more explicit save / unload / ... Michael's added ``generate-core-file'' following following on from that my next guess is to change that command to: (gdb) generate core-file and then also add things like: (gdb) generate for instance: (gdb) generate binary afile
... (I think the word binary is unfortunate but that is what BFD calls it). Andrew