mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2025-02-02 12:52:53 +01:00
Fix bugs reported by Robert Faught:
(unw_get_save_loc): Handle b6 like b7. (unw_get_save_loc): Fix typo: "if (!sloc)" was meant to be "if (!loc)". (Logical change 1.21)
This commit is contained in:
parent
6c1ccd723f
commit
4583a3fc27
1 changed files with 2 additions and 1 deletions
|
@ -117,6 +117,7 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
|
|||
case UNW_IA64_GR + 2 ... UNW_IA64_GR + 3:
|
||||
case UNW_IA64_GR + 8 ... UNW_IA64_GR + 31:
|
||||
case UNW_IA64_BR + 0:
|
||||
case UNW_IA64_BR + 6:
|
||||
case UNW_IA64_BR + 7:
|
||||
case UNW_IA64_AR_RSC:
|
||||
case UNW_IA64_AR_25:
|
||||
|
@ -128,7 +129,7 @@ unw_get_save_loc (unw_cursor_t *cursor, int reg, unw_save_loc_t *sloc)
|
|||
|
||||
memset (sloc, 0, sizeof (sloc));
|
||||
|
||||
if (!sloc)
|
||||
if (!loc)
|
||||
{
|
||||
sloc->type = UNW_SLT_NONE;
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue