* paread.c (read_unwind_info): Fix off-by-one error.
authorJeff Law <law@redhat.com>
Fri, 25 Mar 1994 18:15:10 +0000 (18:15 +0000)
committerJeff Law <law@redhat.com>
Fri, 25 Mar 1994 18:15:10 +0000 (18:15 +0000)
gdb/ChangeLog
gdb/paread.c

index d2ddcaffc28b035c7c471ed571ced8f8f550bfbe..68a65855b31bdc7b6f8b1f743624963e598b061f 100644 (file)
@@ -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.
index 1afe3b5f7af61807caf78b1b0a0fa76f1d16eff2..fab2e4d45ce986287d0554df4dafdc563b1118be 100644 (file)
@@ -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;
        }