Watchpoint Syntax?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Watchpoint Syntax?

跳至解决方案
1,462 次查看
davekellogg
Contributor II

In the debugger's "Control Points" dialog, on the "Watchpoints" tab, what is the syntax for specifying "Condition"? 

I want to halt execution when a memory location (not associated with any variable) is written with a particular value.

Eg, halt when the 2-byte value at address 0x1234 is written with the value 0x55AA.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,064 次查看
CrasyCat
Specialist III

Hello

 

Conditions associated with watchpoints or breakpoints must be specified using ANSI C syntax.

 

So your condition can be specified as follows:

 

    *(unsigned int *) 0x1234 == 0x55AA

 

CrasyCat

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,065 次查看
CrasyCat
Specialist III

Hello

 

Conditions associated with watchpoints or breakpoints must be specified using ANSI C syntax.

 

So your condition can be specified as follows:

 

    *(unsigned int *) 0x1234 == 0x55AA

 

CrasyCat

0 项奖励
回复