aboutsummaryrefslogtreecommitdiff
path: root/gdb/paread.c
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-25 18:15:10 +0000
committerJeff Law <law@redhat.com>1994-03-25 18:15:10 +0000
commitc8f75fe8575af5ba7a81838e9398b7beebba7d21 (patch)
treefc3479c34aa72631904ffa6a91a71dda323b235c /gdb/paread.c
parent0c1af47ff04ab4e8269aeb108002100bc32130c1 (diff)
downloadgdb-c8f75fe8575af5ba7a81838e9398b7beebba7d21.zip
gdb-c8f75fe8575af5ba7a81838e9398b7beebba7d21.tar.gz
gdb-c8f75fe8575af5ba7a81838e9398b7beebba7d21.tar.bz2
* paread.c (read_unwind_info): Fix off-by-one error.
Diffstat (limited to 'gdb/paread.c')
-rw-r--r--gdb/paread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/paread.c b/gdb/paread.c
index 1afe3b5..fab2e4d 100644
--- a/gdb/paread.c
+++ b/gdb/paread.c
@@ -394,8 +394,8 @@ read_unwind_info (objfile)
(bfd_byte *) buf);
buf += 2;
ui->table[index].region_end
- = ui->table[index].region_start + 4 * bfd_get_16 (objfile->obfd,
- (bfd_byte *) buf);
+ = ui->table[index].region_start + 4 *
+ (bfd_get_16 (objfile->obfd, (bfd_byte *) buf) - 1);
buf += 2;
}