Andes Workshop

It is currently Fri Dec 06, 2019 1:23 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: 用gdb讀寫記憶體的指令
PostPosted: Tue Aug 02, 2011 10:32 am 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
用gdb寫記憶體

例如寫在0x500000的位置,如下面的指令
set *(unsigned int *) 0x500000 =0x12345678

下面是印出0x500000的10個words
x/10w 0x500000
0x500000: 0x12345678 0xffffffff 0xffffffff 0xffffffff
0x500010: 0xffffffff 0xffffffff 0xffffffef 0xffffffff
0x500020: 0xffffffff 0xffffffff

從回應中看出來寫入成功


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 1 guest


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