4 int32_t global
= 0; // Watchpoint variable declaration.
6 static void modify(int32_t &var
) {
10 int main(int argc
, char** argv
) {
12 printf("&global=%p\n", &global
);
13 printf("about to write to 'global'...\n"); // Set break point at this line.
14 // When stopped, watch 'global',
15 // for the condition "global == 5".
16 for (int i
= 0; i
< 10; ++i
)
19 printf("global=%d\n", global
);