From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21547 invoked by alias); 4 Jan 2002 20:57:48 -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 21518 invoked from network); 4 Jan 2002 20:57:48 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by sources.redhat.com with SMTP; 4 Jan 2002 20:57:48 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 6473A3EB9; Fri, 4 Jan 2002 15:57:45 -0500 (EST) Message-ID: <3C361749.7020306@cygnus.com> Date: Fri, 04 Jan 2002 12:57: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: "Frank Ch. Eigler" Cc: gdb@sources.redhat.com Subject: Re: A copy/save command ... References: <3C341E2D.6050009@cygnus.com> <20020103155801.A12966@nevyn.them.org> <3C352FB8.2010607@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00015.txt.bz2 > > Consider: > > (gdb) image save FILE RANGE [FORMAT] > (gdb) image restore FILE [ADDR] > (gdb) image compare FILE [ADDR] > > where, say, RANGE could be > ADDR1 ADDR2 > "region 1" -- previously set memory region I'm not sure what you mean by a previously set memory region. Something like: (gdb) image save myfile "region 1" technically ``"region 1"'' is an expression that returns the address of the string ``region 1'' freshly malloc()d in target memmory. -- I'm wondering what the semantics of ``restore'' are and how they differ from load in some cases. Perhaphs ``(gdb) load '' is syntatic sugar for one of the ``(gdb) image ...'' commands. enjoy, Andrew