Watchpoint Syntax?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Watchpoint Syntax?

Jump to solution
869 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Solution
471 Views
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

View solution in original post

0 Kudos
1 Reply
472 Views
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 Kudos