]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
readelf: Use symbolic printing for FDE initial_location address.
authorRoland McGrath <roland@redhat.com>
Fri, 2 Jul 2010 18:16:25 +0000 (11:16 -0700)
committerRoland McGrath <roland@redhat.com>
Fri, 2 Jul 2010 18:16:25 +0000 (11:16 -0700)
src/ChangeLog
src/readelf.c

index 00fd42fffba758c8a1cdaa0b46b42e6368009bed..9049f2a44a6696e79e9110ab38f63c1888454c63 100644 (file)
@@ -1,3 +1,8 @@
+2010-07-02  Roland McGrath  <roland@redhat.com>
+
+       * readelf.c (print_debug_frame_section): Use format_dwarf_addr for
+       initial_location.
+
 2010-06-30  Roland McGrath  <roland@redhat.com>
 
        * strings.c (main): Use STDIN_FILENO, not STDOUT_FILENO.
index dbc84998c5274bd1d466223f5ac37ab7794a9389..3e451c6f030359d548090fe242ab08877cff42c5 100644 (file)
@@ -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