Make variables local again, now that gdb is "fixed."
[riscv-tests.git] / debug / programs / debug.c
index 7d0b8767c74140c64a685e5da24d9bed792bd158..2010eaa898a6c7ccbd272a99f942ea9c62608be1 100644 (file)
@@ -28,14 +28,10 @@ size_t strlen(const char *buf)
     return len;
 }
 
-// TODO: These should be local to main, but if I make them global then gdb can
-// find them.
-static volatile int i;
-static int j;
 int main()
 {
-    i = 0;
-    j = 0;
+    volatile int i = 0;
+    int j = 0;
     char *fox = "The quick brown fox jumps of the lazy dog.";
     unsigned int checksum = 0;