From: Roland McGrath Date: Fri, 2 Jul 2010 18:16:25 +0000 (-0700) Subject: readelf: Use symbolic printing for FDE initial_location address. X-Git-Tag: elfutils-0.149~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f14a31a55bb61eaf7fea106b0c37ef83ad718d9;p=thirdparty%2Felfutils.git readelf: Use symbolic printing for FDE initial_location address. --- diff --git a/src/ChangeLog b/src/ChangeLog index 00fd42fff..9049f2a44 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2010-07-02 Roland McGrath + + * readelf.c (print_debug_frame_section): Use format_dwarf_addr for + initial_location. + 2010-06-30 Roland McGrath * strings.c (main): Use STDIN_FILENO, not STDOUT_FILENO. diff --git a/src/readelf.c b/src/readelf.c index dbc84998c..3e451c6f0 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -5084,12 +5084,14 @@ print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr, Dwarf_Word address_range = read_ubyte_unaligned_inc (ptr_size, dbg, readp); + char *a = format_dwarf_addr (dwflmod, cie->address_size, + initial_location); printf ("\n [%6tx] FDE length=%" PRIu64 " cie=[%6tx]\n" " CIE_pointer: %" PRIu64 "\n" - " initial_location: %#" PRIx64, + " initial_location: %s", offset, (uint64_t) unit_length, - cie->cie_offset, (uint64_t) cie_id, - (uint64_t) initial_location); + cie->cie_offset, (uint64_t) cie_id, a); + free (a); if ((fde_encoding & 0x70) == DW_EH_PE_pcrel) { vma_base = (((uint64_t) shdr->sh_offset