Advanced Debugging
About AdvDbg Consult Train Services Products Tools Community Contact  
欢迎光临 高端调试 登录 | 注册 | FAQ
 
  ACPI调试
Linux内核调试
Windows内核调试
 
  调试战役
调试原理
新工具观察
 
  Linux
Windows Vista
Windows
 
  Linux驱动
WDF
WDM
 
  PCI Express
PCI/PCI-X
USB
无线通信协议
 
  64位CPU
ARM
IA-32
  CPU Info Center
 
  ACPI标准
系统认证
Desktop
服务器
 
  Embedded Linux
嵌入式开发工具
VxWorks
WinCE
嵌入式Windows
 
  格蠹调试套件(GDK)
  格蠹学院
  小朱书店
  老雷的微博
  《软件调试》
  《格蠹汇编》
  《软件调试(第二版)》
沪ICP备11027180号-1

WinDbg

帖子发起人: hgy413   发起时间: 2012-05-29 15:42 下午   回复: 2

Print Search
帖子排序:    
   2012-05-29, 15:42 下午
hgy413 离线,最后访问时间: 2012/5/29 7:30:25 hgy413

发帖数前150位
注册: 2012-05-23
发 贴: 6
Smile [:)] 求教:dt _PEB $peb为什么不行?
Reply Quote

老师,您好

$peb是表示peb地址的伪寄存器,为什么不能直接用dt _PEB $peb:

0:000> dt _PEB $peb
ntdll!_PEB
Cannot find specified field members.

而必须用dt _PEB @$peb,

另还有那个问题,如果需要学好条件断点语法,能否推荐点,我希望慢慢入门,但能不走太多弯路,万分感谢


IP 地址: 已记录   报告
   2012-05-30, 10:01 上午
rong_bo 离线,最后访问时间: 2011/9/5 12:57:46 wrong

发帖数前10位
注册: 2011-01-07
发 贴: 66
Re: 求教:dt _PEB $peb为什么不行?
Reply Quote

帮助文件中有的。

When you use a register in an expression, you should add an at sign ( @ ) before the register. This at sign tells the debugger that the following text is the name of a register.

If you are using MASM expression syntax, you can omit the at sign for certain very common registers. On x86-based systems, you can omit the at sign for the eax, ebx, ecx, edx, esi, edi, ebp, eip, and efl registers. However, if you specify a less common register without an at sign, the debugger first tries to interpret the text as a hexadecimal number. If the text contains non-hexadecimal characters, the debugger next interprets the text as a symbol. Finally, if the debugger does not find a symbol match, the debugger interprets the number as a register.

If you are using C++ expression syntax, the at sign is always required.


IP 地址: 已记录   报告
   2012-05-31, 10:44 上午
hgy413 离线,最后访问时间: 2012/5/29 7:30:25 hgy413

发帖数前150位
注册: 2012-05-23
发 贴: 6
Smile [:)] Re: 求教:dt _PEB $peb为什么不行?
Reply Quote
3Q,非常感谢
IP 地址: 已记录   报告
高端调试 » 软件调试 » WinDbg » Re: 求教:dt _PEB $peb为什么不行?

 
Legal Notice Privacy Statement Corporate Governance Corporate Governance
(C)2004-2020 ADVDBG.ORG All Rights Reserved.