Andes Workshop http://forum.andestech.com/ |
|
用gdb讀寫記憶體的指令 http://forum.andestech.com/viewtopic.php?f=16&t=117 |
Page 1 of 1 |
Author: | cindy [ Tue Aug 02, 2011 10:32 am ] |
Post subject: | 用gdb讀寫記憶體的指令 |
用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 從回應中看出來寫入成功 |
Page 1 of 1 | All times are UTC + 8 hours [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |