mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-30 02:27:38 +01:00
Drop DWARF-parsing debug prints from level 16 to 15.
(parse_cie): Pick correct default for FDE-encoding, not just DW_EH_PE_omit. (Logical change 1.248)
This commit is contained in:
parent
aae368ace2
commit
077322d414
1 changed files with 12 additions and 3 deletions
|
@ -47,7 +47,16 @@ parse_cie (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *addr,
|
||||||
# define STR2(x) #x
|
# define STR2(x) #x
|
||||||
# define STR(x) STR2(x)
|
# define STR(x) STR2(x)
|
||||||
|
|
||||||
fde_encoding = DW_EH_PE_omit;
|
/* Pick appropriate default for FDE-encoding. DWARF spec says it
|
||||||
|
has to be the size of the addressing unit of the architecture,
|
||||||
|
unless specfied otherwise in the augmentation string. */
|
||||||
|
switch (sizeof (unw_word_t))
|
||||||
|
{
|
||||||
|
case 4: fde_encoding = DW_EH_PE_udata4; break;
|
||||||
|
case 8: fde_encoding = DW_EH_PE_udata8; break;
|
||||||
|
default: fde_encoding = DW_EH_PE_omit; break;
|
||||||
|
}
|
||||||
|
|
||||||
*lsda_encodingp = DW_EH_PE_omit;
|
*lsda_encodingp = DW_EH_PE_omit;
|
||||||
dfi->flags = 0;
|
dfi->flags = 0;
|
||||||
|
|
||||||
|
@ -176,7 +185,7 @@ parse_cie (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *addr,
|
||||||
}
|
}
|
||||||
dfi->flags |= fde_encoding & UNW_DYN_DFI_FLAG_FDE_PE_MASK;
|
dfi->flags |= fde_encoding & UNW_DYN_DFI_FLAG_FDE_PE_MASK;
|
||||||
pi->handler = handler;
|
pi->handler = handler;
|
||||||
Debug (16, "CIE parsed OK, augmentation = \"%s\", handler=0x%lx\n",
|
Debug (15, "CIE parsed OK, augmentation = \"%s\", handler=0x%lx\n",
|
||||||
augstr, (long) handler);
|
augstr, (long) handler);
|
||||||
dfi->cie_instr_start = *addr;
|
dfi->cie_instr_start = *addr;
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -281,7 +290,7 @@ dwarf_parse_fde (unw_addr_space_t as, unw_accessors_t *a, unw_word_t *addr,
|
||||||
pi->unwind_info_size = sizeof (pi->extra.dwarf_info) / sizeof (unw_word_t);
|
pi->unwind_info_size = sizeof (pi->extra.dwarf_info) / sizeof (unw_word_t);
|
||||||
pi->unwind_info = &pi->extra.dwarf_info;
|
pi->unwind_info = &pi->extra.dwarf_info;
|
||||||
|
|
||||||
Debug (16, "FDE covers IP 0x%lx-0x%lx, LSDA=0x%lx\n",
|
Debug (15, "FDE covers IP 0x%lx-0x%lx, LSDA=0x%lx\n",
|
||||||
(long) pi->start_ip, (long) pi->end_ip, (long) pi->lsda);
|
(long) pi->start_ip, (long) pi->end_ip, (long) pi->lsda);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue