4 int32_t global
= 0; // Watchpoint variable declaration.
7 static void modify(int32_t &var
) {
11 int main(int argc
, char** argv
) {
13 printf("&global=%p\n", &global
);
14 printf("about to write to 'global'...\n"); // Set break point at this line.
15 for (int i
= 0; i
< 10; ++i
)
18 printf("global=%d\n", global
);
19 printf("cookie=%d\n", cookie
); // Set another breakpoint here.