This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: trying to use gdb to disassemble a binary file


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"


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]