From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29422 invoked by alias); 7 Dec 2003 18:03:33 -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 29268 invoked from network); 7 Dec 2003 18:03:32 -0000 Received: from unknown (HELO mail.s.netic.de) (212.9.160.11) by sources.redhat.com with SMTP; 7 Dec 2003 18:03:32 -0000 Received: from host-212-9-162-91.dial.netic.de ([212.9.162.91] helo=schleim.qwe.de) by mail.s.netic.de with esmtp (Exim 4.22) id 1AT3Fj-000HOY-I4 for gdb@sources.redhat.com; Sun, 07 Dec 2003 19:03:31 +0100 Received: from localhost (localhost [127.0.0.1]) by schleim.qwe.de (Postfix) with ESMTP id 12BD6A4273 for ; Sun, 7 Dec 2003 18:40:35 +0100 (CET) From: Torsten Mohr Organization: Qwe Inc. To: gdb@sources.redhat.com Subject: remote target: compare a loaded file Date: Sun, 07 Dec 2003 18:03:00 -0000 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312071840.34366.tmohr@s.netic.de> X-SW-Source: 2003-12/txt/msg00137.txt.bz2 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? Regards, Torsten.