This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Disassemble rom image data
- From: Jim Blandy <jimb at redhat dot com>
- To: benlaudc at yahoo dot com dot hk
- Cc: gdb at sources dot redhat dot com
- Date: 24 Sep 2002 21:59:31 -0500
- Subject: Re: Disassemble rom image data
- References: <20020923030647.87127.qmail@web21509.mail.yahoo.com>
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?