diff options
Diffstat (limited to 'lldb/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp')
| -rw-r--r-- | lldb/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp index f4c3527f8af..6cb80c62217 100644 --- a/lldb/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp +++ b/lldb/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp @@ -10,6 +10,7 @@ #include <stdint.h> int32_t global = 0; // Watchpoint variable declaration. +int32_t cookie = 0; static void modify(int32_t &var) { ++var; @@ -19,10 +20,9 @@ int main(int argc, char** argv) { int local = 0; printf("&global=%p\n", &global); printf("about to write to 'global'...\n"); // Set break point at this line. - // When stopped, watch 'global', - // for the condition "global == 5". for (int i = 0; i < 10; ++i) modify(global); printf("global=%d\n", global); + printf("cookie=%d\n", cookie); } |

