Skip to content
Snippets Groups Projects
Commit fd4177d9 authored by Johnny Chen's avatar Johnny Chen
Browse files

Check in main.c modified for testing hardware watchpoints on arm architectures.

llvm-svn: 153268
parent 817a7c6f
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ int main(int argc, char** argv) {
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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment