aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/paread.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d2ddcaf..68a6585 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+Fri Mar 25 10:14:03 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
+
+ * paread.c (read_unwind_info): Fix off-by-one error.
+
Fri Mar 25 08:33:28 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* main.c (complete_command): Deal with it if arg is NULL.
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;
}