From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16377 invoked by alias); 4 Jan 2002 20:48:06 -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 16234 invoked from network); 4 Jan 2002 20:48:05 -0000 Received: from unknown (HELO localhost.cygnus.com) (216.138.202.10) by sources.redhat.com with SMTP; 4 Jan 2002 20:48:05 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.cygnus.com (Postfix) with ESMTP id 37F5E3EB9; Fri, 4 Jan 2002 15:48:03 -0500 (EST) Message-ID: <3C361502.7080708@cygnus.com> Date: Fri, 04 Jan 2002 12:48: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: Edward Swarthout Cc: gdb@sources.redhat.com Subject: Re: A copy/save command ... References: <1010165997.16220.ezmlm@sources.redhat.com> <200201042003.g04K3F219582@pacific.somerset.sps.mot.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-01/txt/msg00014.txt.bz2 Just some side notes. I don't disagree with your logic. > gdb> load BINFILE1 .bss Some versions of load already have a syntax like: (gdb) load file [ ] see symfile.c:generic_load() > or > gdb> dump BINFILE2 load1 > would do the desired thing. I've been playing with load/store architectures for too long - I keep thinking that the oposite of load is store ... :-( > It would be natural to add core file support to load/dump too. > > There is still the issue of how to specify the format (binary, > elf-core, elf-object, srec, or other bfd type). Maybe some borrow > the syntax from objcopy or the loader. something like: load/FORMAT st^D^D dump/FORMAT Trying to re-use objcopy would be a good idea (if helpful). Andrew