免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: wth0722
打印 上一主题 下一主题

[其他] GDB如何去看物理記憶體 [复制链接]

论坛徽章:
9
辰龙
日期:2014-08-18 20:38:42未羊
日期:2014-09-04 08:50:45丑牛
日期:2014-09-06 00:12:55寅虎
日期:2014-12-22 20:50:56摩羯座
日期:2015-01-14 22:28:15巳蛇
日期:2015-01-23 20:39:272015年辞旧岁徽章
日期:2015-03-03 16:54:1515-16赛季CBA联赛之青岛
日期:2016-03-13 23:37:1915-16赛季CBA联赛之深圳
日期:2016-03-29 18:52:38
11 [报告]
发表于 2014-09-10 13:11 |只看该作者
amarant 发表于 2014-09-10 11:16
qemu有命令直接看物理地址
先按alt+ctrl+2 进入qemu的调试界面,好像是xp指令可以直接看物理地址的内容


正解!

详情请见:
http://en.wikibooks.org/wiki/QEMU/Monitor
http://www.ibm.com/developerworks/cn/linux/l-cn-qemu-monitor/

xp[edit]
x /format address

Displays memory at the specified physical address using the specified format.

format: Used to specify the output format the displayed memory. The format is broken down as /[count][data_format][size]

count: number of item to display (base 10)
data_format: 'x' for hex, 'd' for decimal, 'u' for unsigned decimal, 'o' for octal, 'c' for char and 'i' for (disassembled) processor instructions
size: 'b' for 8 bits, 'h' for 16 bits, 'w' for 32 bits or 'g' for 64 bits. On x86 'h' and 'w' can select instruction disassembly code formats.
address:

Direct address, for example: 0x20000
Register, for example: $eip

论坛徽章:
0
12 [报告]
发表于 2014-09-11 14:19 |只看该作者
回复 11# Tinnal


    感謝回復
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP