From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9132 invoked by alias); 6 Aug 2007 18:56:39 -0000 Received: (qmail 8972 invoked by uid 22791); 6 Aug 2007 18:56:38 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (194.72.81.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 06 Aug 2007 18:56:35 +0000 Received: from rainbow ([192.168.8.46]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 6 Aug 2007 19:56:33 +0100 From: "Dave Korn" To: "'Fahd Abidi'" , References: <071DB0C788671B48940BC79F8B49306918A858@ultsol01.tewks.ultsol.local> Subject: RE: trying to use gdb to disassemble a binary file Date: Mon, 06 Aug 2007 18:56:00 -0000 Message-ID: <009801c7d85b$816f7f60$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <071DB0C788671B48940BC79F8B49306918A858@ultsol01.tewks.ultsol.local> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00061.txt.bz2 On 06 August 2007 19:45, Fahd Abidi wrote: > Hello, > > I am trying to use GDB to disassemble a binary file. I have no problems > when gdb connects to a target board (running a PC440) and viewing the > disassembly via the display command, (gdb)x /10i$0xfffff000. But GDB > does will not recognize or open a binary file format. It might not be > the right tool to use, I really just want to open a binary file in gdb > and view the disassembly. Is that possible? Not easily, although it would work if you could get the file's contents loaded into memory. Probably your best bet is to use "objdump -D --target=binary --architecture= filename" cheers, DaveK -- Can't think of a witty .sigline today....