projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc2dac0
)
Make variables local again, now that gdb is "fixed."
author
Tim Newsome
<tim@sifive.com>
Thu, 30 Jun 2016 20:11:20 +0000
(13:11 -0700)
committer
Tim Newsome
<tim@sifive.com>
Tue, 19 Jul 2016 18:24:25 +0000
(11:24 -0700)
debug/programs/debug.c
patch
|
blob
|
history
diff --git
a/debug/programs/debug.c
b/debug/programs/debug.c
index 7d0b8767c74140c64a685e5da24d9bed792bd158..2010eaa898a6c7ccbd272a99f942ea9c62608be1 100644
(file)
--- 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;