aboutsummaryrefslogtreecommitdiff
path: root/gdb/i960-tdep.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1999-04-26 18:34:20 +0000
committerStan Shebs <shebs@codesourcery.com>1999-04-26 18:34:20 +0000
commit7a292a7adf506b866905b06b3024c0fd411c4583 (patch)
tree5b208bb48269b8a82d5c3a5f19c87b45a62a22f4 /gdb/i960-tdep.c
parent1996fae84682e8ddd146215dd2959ad1ec924c09 (diff)
downloadgdb-7a292a7adf506b866905b06b3024c0fd411c4583.zip
gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.gz
gdb-7a292a7adf506b866905b06b3024c0fd411c4583.tar.bz2
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/i960-tdep.c')
-rw-r--r--gdb/i960-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/i960-tdep.c b/gdb/i960-tdep.c
index e33415d..bb2087a 100644
--- a/gdb/i960-tdep.c
+++ b/gdb/i960-tdep.c
@@ -581,7 +581,8 @@ pop_frame ()
get_frame_saved_regs (current_fi, &fsr);
for (i = G0_REGNUM; i < G14_REGNUM; i++)
{
- if (save_addr = fsr.regs[i])
+ save_addr = fsr.regs[i];
+ if (save_addr != 0)
write_register (i, read_memory_integer (save_addr, 4));
}