aboutsummaryrefslogtreecommitdiff
path: root/debug/programs/debug.c
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2016-06-30 13:11:20 -0700
committerTim Newsome <tim@sifive.com>2016-07-19 11:24:25 -0700
commita8f4c20794b4eff8089f7fedb2d1bb4eff0a08d4 (patch)
treefbd05fb8964df615a79dc869f123d819fa640e92 /debug/programs/debug.c
parentbc2dac07529b05e438ab93d8fcbc495741675d32 (diff)
downloadriscv-tests-a8f4c20794b4eff8089f7fedb2d1bb4eff0a08d4.zip
riscv-tests-a8f4c20794b4eff8089f7fedb2d1bb4eff0a08d4.tar.gz
riscv-tests-a8f4c20794b4eff8089f7fedb2d1bb4eff0a08d4.tar.bz2
Make variables local again, now that gdb is "fixed."
Diffstat (limited to 'debug/programs/debug.c')
-rw-r--r--debug/programs/debug.c8
1 files 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;