Andes Workshop

It is currently Thu Mar 28, 2024 11:57 pm

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 7161 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 24 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group