From: Jeff Law Date: Fri, 25 Mar 1994 18:15:10 +0000 (+0000) Subject: * paread.c (read_unwind_info): Fix off-by-one error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8f75fe8575af5ba7a81838e9398b7beebba7d21;p=binutils-gdb.git * paread.c (read_unwind_info): Fix off-by-one error. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d2ddcaffc28..68a65855b31 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 1afe3b5f7af..fab2e4d45ce 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; }