This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: RE: Disassemble rom image data
- From: leiming <blackhorse_linux at sina dot com>
- To: Ben Lau <benlaudc at yahoo dot com dot hk>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 24 Sep 2002 09:46:44 +0800
- Subject: RE: RE: Disassemble rom image data
hi!
which target are you debuging?
Generally,You can debug remote programm through stub , monitor
or gdbserver. This depends on your target board or cpu. Only gdb
support your target,you can use remote stub .and if the rom monitor is provided by the vendor,you can use it. Both through the two ways above,you can load the target rom/ram/flash data to gdb.
thank you!
leiming
----- Original Message -----
From:Ben Lau <benlaudc@yahoo.com.hk>
To:"竭�l窟" <blackhorse_linux@sina.com>
Subject:RE: Disassemble rom image data
Date:Mon, 23 Sep 2002 15:44:07 +0800
>hi!
>
>thx u!!
>
>but it have a problem. Can gdb load data from
>flash/file not in any exec format it know?
>
>or gdbserver can simply do the work? For example,
>I setup a gdbserver there , and run gdb in host to
>exam the flash disk data? Someone told me that the
>gdb can work in virtual memory address space only.
>
> --- 竭�l窟 <blackhorse_linux@sina.com>
>秎ンず甧>
>> hi!
>> I think you should use the command "x/i ADDR"
>> to disassemble
>> or debug the code after you create the connection
>> between gdb and the target board.
>> You can try it.
>>
>>
>> leiming
>>
>>
>> ----- Original Message -----
>> From:Ben Lau <benlaudc@yahoo.com.hk>
>> To:gdb@sources.redhat.com
>> Subject:Disassemble rom image data
>> Date:Mon, 23 Sep 2002 11:06:47 +0800
>> >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?
>> >
>> >Thx!
>> >
>>
>>
>>_________________________________________________________
>> >Ichiban砍灸さらΩ瑈瞈みだも...
>> >硉更Inも诀筧羘
>> >Download the HOTTEST ringtones from Yahoo!
>> >http://ringtone.yahoo.com.hk
>> >
>> >
>>
>> ______________________________________
>>
>>
>===================================================================
>> 新浪免费电子邮箱 (http://mail.sina.com.cn)
>> 新浪二手市场:一元投�,十分惊喜,百分满意
>> (http://classad.sina.com.cn/2shou/)
>>
>数万张手机图�数万首短信铃声�你挑选,每天都有更新
>(http://sms.sina.com.cn/cgi-bin/sms/smspic.cgi)
>
>_________________________________________________________
>Ichiban砍灸さらΩ瑈瞈みだも...
>硉更Inも诀筧羘
>Download the HOTTEST ringtones from Yahoo!
>http://ringtone.yahoo.com.hk
>
>
______________________________________
===================================================================
新浪免费电子邮箱 (http://mail.sina.com.cn)
新浪二手市场:一元投入,十分惊喜,百分满意 (http://classad.sina.com.cn/2shou/)
数万张手机图片数万首短信铃声任你挑选,每天都有更新 (http://sms.sina.com.cn/cgi-bin/sms/smspic.cgi)