From: Daniel Jacobowitz <drow@false.org>
To: Dave Korn <dave.korn@artimi.com>
Cc: 'Fahd Abidi' <fabidi@ultsol.com>, gdb@sourceware.org
Subject: Re: trying to use gdb to disassemble a binary file
Date: Mon, 06 Aug 2007 19:16:00 -0000 [thread overview]
Message-ID: <20070806191643.GA20629@caradoc.them.org> (raw)
In-Reply-To: <009801c7d85b$816f7f60$2e08a8c0@CAM.ARTIMI.COM>
On Mon, Aug 06, 2007 at 07:56:32PM +0100, Dave Korn wrote:
> 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=<your arch> filename"
Alternatively, use objcopy to convert the file into an ELF image.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2007-08-06 19:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-06 18:46 Fahd Abidi
2007-08-06 18:56 ` Dave Korn
2007-08-06 19:16 ` Daniel Jacobowitz [this message]
2007-08-06 21:00 Fahd Abidi
2007-08-08 9:06 Robert Bu
2007-08-08 13:10 Robert Bu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070806191643.GA20629@caradoc.them.org \
--to=drow@false.org \
--cc=dave.korn@artimi.com \
--cc=fabidi@ultsol.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox