1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-06-26 19:31:45 +02:00

(_UPT_reg_offset): Fix off-by-1 error.

(Logical change 1.81)
This commit is contained in:
hp.com!davidm 2003-04-21 23:14:14 +00:00
parent 060850b2c7
commit bbfe13cce0
2 changed files with 2 additions and 2 deletions

View file

@ -51,7 +51,7 @@ struct UPT_info
#endif
};
HIDDEN int _UPT_reg_offset[UNW_REG_LAST];
HIDDEN int _UPT_reg_offset[UNW_REG_LAST + 1];
extern HIDDEN unw_dyn_info_t *_UPTi_find_unwind_table (struct UPT_info *ui,
unw_addr_space_t as,

View file

@ -33,7 +33,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
# include <asm/ptrace_offsets.h>
#endif
int _UPT_reg_offset[UNW_REG_LAST] =
int _UPT_reg_offset[UNW_REG_LAST + 1] =
{
#ifdef HAVE_ASM_PTRACE_OFFSETS_H
# ifndef PT_AR_CSD