From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 736 invoked by alias); 7 Dec 2003 18:23:19 -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 729 invoked from network); 7 Dec 2003 18:23:19 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 7 Dec 2003 18:23:19 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1AT3Ys-0002yb-OQ for ; Sun, 07 Dec 2003 13:23:18 -0500 Date: Sun, 07 Dec 2003 18:23:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: remote target: compare a loaded file Message-ID: <20031207182318.GA11426@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <200312071840.34366.tmohr@s.netic.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200312071840.34366.tmohr@s.netic.de> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-12/txt/msg00138.txt.bz2 On Sun, Dec 07, 2003 at 06:40:34PM +0100, Torsten Mohr wrote: > Hi, > > at the moment i write some code to implement a > remote GDB server. I suspect that the program > i download into a target is changed somehow. > > Can i somehow easily "compare" the downloaded > program? > > Something like: > > bash# arm-unknown-elf-gdb main.elf > (gdb) target remote localhost:2000 // connect to target > (gdb) load main.elf > (gdb) compare_downloaded_file main.elf > > > Is something like this possible? > > Can i somehow write a region of memory as binary into a > file? Take a look at the GDB command "dump". -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer