From 911413e6b33649e8d78227ef77265eb9eb27721b Mon Sep 17 00:00:00 2001 From: Jonathan Larmour Date: Mon, 19 Feb 2001 22:03:25 +0000 Subject: [PATCH] * arm-tdep.c (check_prologue_cache): Fix off by 1 error. (save_prologue_cache): Ditto. --- gdb/ChangeLog | 5 +++++ gdb/arm-tdep.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 311d143e03b..7748ab89b89 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-02-19 Jonathan Larmour + + * arm-tdep.c (check_prologue_cache): Fix off by 1 error. + (save_prologue_cache): Ditto. + 2001-02-19 Elena Zannoni From: innadadadavida@yahoo.com: diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 00d63cce495..3ca6dbebe21 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]; } -- 2.30.2