[Lldb-commits] [lldb] r153268 - /lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c

Johnny Chen johnny.chen at apple.com
Thu Mar 22 11:52:00 PDT 2012


Author: johnny
Date: Thu Mar 22 13:51:59 2012
New Revision: 153268

URL: http://llvm.org/viewvc/llvm-project?rev=153268&view=rev
Log:
Check in main.c modified for testing hardware watchpoints on arm architectures.

Modified:
    lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c

Modified: lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c?rev=153268&r1=153267&r2=153268&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c Thu Mar 22 13:51:59 2012
@@ -10,6 +10,8 @@
 #include <stdint.h>
 
 int32_t global = 10; // Watchpoint variable declaration.
+char gchar1 = 'a';
+char gchar2 = 'b';
 
 int main(int argc, char** argv) {
     int local = 0;
@@ -17,8 +19,12 @@
     printf("about to write to 'global'...\n"); // Set break point at this line.
                                                // When stopped, watch 'global' for write.
     global = 20;
+    gchar1 += 1;
+    gchar2 += 1;
     local += argc;
     ++local;
     printf("local: %d\n", local);
     printf("global=%d\n", global);
+    printf("gchar1='%c'\n", gchar1);
+    printf("gchar2='%c'\n", gchar2);
 }





More information about the lldb-commits mailing list