diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-12 22:51:09 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-12 22:51:09 +0000 |
commit | 8549490910bfca42afe8eb51f66aeb143d647c25 (patch) | |
tree | b17c8af3cb9a616696a9d401d86d90d402b5f1eb /gdb/a29k-tdep.c | |
parent | e1f63216eb229e4f939e4f46aa099daaae2cc23f (diff) | |
download | gdb-8549490910bfca42afe8eb51f66aeb143d647c25.zip gdb-8549490910bfca42afe8eb51f66aeb143d647c25.tar.gz gdb-8549490910bfca42afe8eb51f66aeb143d647c25.tar.bz2 |
* a29k-tdep.c (read_register_stack): Make val static.
Diffstat (limited to 'gdb/a29k-tdep.c')
-rw-r--r-- | gdb/a29k-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c index 42232ce..8437c97 100644 --- a/gdb/a29k-tdep.c +++ b/gdb/a29k-tdep.c @@ -520,7 +520,7 @@ read_register_stack (memaddr, myaddr, actual_mem_addr, lval) if (memaddr >= rstack_high_address) { /* a bogus value */ - char val[] = {~0, ~0, ~0, ~0}; + static char val[] = {~0, ~0, ~0, ~0}; /* It's in a local register, but off the end of the stack. */ int regnum = (memaddr - rsp) / 4 + LR0_REGNUM; if (myaddr != NULL) |