Disassemble rom image data
Jim Blandy
jimb@redhat.com
Tue Sep 24 20:14:00 GMT 2002
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?
More information about the Gdb
mailing list