This is the mail archive of the gdb@sources.redhat.com 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: Disassemble rom image data


Ben Lau <benlaudc@yahoo.com.hk> writes:

> HiHi!
> 
>      I want to disassemble/debug a piece of codes from
> a flash disk. The code is a bootloader/BIOS. Since the
> code wont store in any exec format like ELF. The gdb
> would complain that is a file format not supported.
> Any way to get the gdb work in this case? Or any
> recommendation to the tools i needed to preform the
> task?

Why don't you dump it as S-records (a very trivial formal) and just
use objdump -d for disassembly?

For debugging, I don't think you need an executable file.  Do you have
some kind of debugging connection to the machine?  Do you have a GDB
stub installed?


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