mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-04-18 02:22:16 +02:00
(_UPT_reg_offset): Fix off-by-1 error.
(Logical change 1.81)
This commit is contained in:
parent
060850b2c7
commit
bbfe13cce0
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ struct UPT_info
|
||||||
#endif
|
#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,
|
extern HIDDEN unw_dyn_info_t *_UPTi_find_unwind_table (struct UPT_info *ui,
|
||||||
unw_addr_space_t as,
|
unw_addr_space_t as,
|
||||||
|
|
|
@ -33,7 +33,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
# include <asm/ptrace_offsets.h>
|
# include <asm/ptrace_offsets.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int _UPT_reg_offset[UNW_REG_LAST] =
|
int _UPT_reg_offset[UNW_REG_LAST + 1] =
|
||||||
{
|
{
|
||||||
#ifdef HAVE_ASM_PTRACE_OFFSETS_H
|
#ifdef HAVE_ASM_PTRACE_OFFSETS_H
|
||||||
# ifndef PT_AR_CSD
|
# ifndef PT_AR_CSD
|
||||||
|
|
Loading…
Add table
Reference in a new issue