Watchpoint Syntax?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,470件の閲覧回数
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,072件の閲覧回数
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,073件の閲覧回数
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 件の賞賛
返信