From a8f4c20794b4eff8089f7fedb2d1bb4eff0a08d4 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 30 Jun 2016 13:11:20 -0700 Subject: [PATCH] Make variables local again, now that gdb is "fixed." --- debug/programs/debug.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/debug/programs/debug.c b/debug/programs/debug.c index 7d0b876..2010eaa 100644 --- a/debug/programs/debug.c +++ b/debug/programs/debug.c @@ -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; -- 2.30.2