1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2025-03-10 18:30:08 +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:
mostang.com!davidm 2002-11-09 03:59:27 +00:00
parent 6c1ccd723f
commit 4583a3fc27

View file

@ -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 + 2 ... UNW_IA64_GR + 3:
case UNW_IA64_GR + 8 ... UNW_IA64_GR + 31: case UNW_IA64_GR + 8 ... UNW_IA64_GR + 31:
case UNW_IA64_BR + 0: case UNW_IA64_BR + 0:
case UNW_IA64_BR + 6:
case UNW_IA64_BR + 7: case UNW_IA64_BR + 7:
case UNW_IA64_AR_RSC: case UNW_IA64_AR_RSC:
case UNW_IA64_AR_25: 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)); memset (sloc, 0, sizeof (sloc));
if (!sloc) if (!loc)
{ {
sloc->type = UNW_SLT_NONE; sloc->type = UNW_SLT_NONE;
return 0; return 0;