Andes Workshop

It is currently Fri Aug 07, 2020 12:17 am

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Show instructions in memory
PostPosted: Thu Oct 11, 2012 4:31 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
If we have no source file, we want to know the instructions in memory.
We can use "x/i" command in gdb

See the following example.
First, we start ICEman
Gdb command "x/10i 0xc6a" is to show 10 instructions at address 0x6ca.
You may use "x/20i $pc" to show 20 instructions at pc counter.
Attachment:
gdb.png
gdb.png [ 16.54 KiB | Viewed 4519 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group