aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorJonathan Larmour <jifl@eCosCentric.com>2001-02-19 22:03:25 +0000
committerJonathan Larmour <jifl@eCosCentric.com>2001-02-19 22:03:25 +0000
commit911413e6b33649e8d78227ef77265eb9eb27721b (patch)
treeedc58dddc59586628480c34f64ad4c30e7cc72bf /gdb/arm-tdep.c
parent8030f85769ed93908f16696615ed22242f861eba (diff)
downloadgdb-911413e6b33649e8d78227ef77265eb9eb27721b.zip
gdb-911413e6b33649e8d78227ef77265eb9eb27721b.tar.gz
gdb-911413e6b33649e8d78227ef77265eb9eb27721b.tar.bz2
* arm-tdep.c (check_prologue_cache): Fix off by 1 error.
(save_prologue_cache): Ditto.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 00d63cc..3ca6dbe 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -635,7 +635,7 @@ check_prologue_cache (struct frame_info *fi)
fi->framereg = prologue_cache.framereg;
fi->framesize = prologue_cache.framesize;
fi->frameoffset = prologue_cache.frameoffset;
- for (i = 0; i <= NUM_REGS; i++)
+ for (i = 0; i < NUM_REGS; i++)
fi->fsr.regs[i] = prologue_cache.fsr.regs[i];
return 1;
}
@@ -656,7 +656,7 @@ save_prologue_cache (struct frame_info *fi)
prologue_cache.framesize = fi->framesize;
prologue_cache.frameoffset = fi->frameoffset;
- for (i = 0; i <= NUM_REGS; i++)
+ for (i = 0; i < NUM_REGS; i++)
prologue_cache.fsr.regs[i] = fi->fsr.regs[i];
}