From 8549490910bfca42afe8eb51f66aeb143d647c25 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Mon, 12 Jul 1993 22:51:09 +0000 Subject: [PATCH] * a29k-tdep.c (read_register_stack): Make val static. --- gdb/ChangeLog | 4 ++++ gdb/a29k-tdep.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 031f782ccc4..2e928cd00ff 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Jul 12 17:46:35 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + + * a29k-tdep.c (read_register_stack): Make val static. + Mon Jul 12 14:10:48 1993 Doug Evans (dje@canuck.cygnus.com) * config/h8300/tm-h8300.h (REGISTER_CONVERTIBLE): Change value to 0. diff --git a/gdb/a29k-tdep.c b/gdb/a29k-tdep.c index 42232cec220..8437c974005 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) -- 2.30.2