readelf: Handle DW_FORK_ref_sig8.
authorRoland McGrath <roland@redhat.com>
Wed, 2 Jun 2010 02:52:39 +0000 (19:52 -0700)
committerRoland McGrath <roland@redhat.com>
Wed, 2 Jun 2010 02:52:39 +0000 (19:52 -0700)
src/ChangeLog
src/readelf.c

index f3dcb52..58fc5b8 100644 (file)
@@ -2,7 +2,7 @@
 
        * readelf.c (dwarf_form_string): Handle DWARF 4 forms.
        (attr_callback): Handle DW_FORM_flag_present, DW_FORM_exprloc,
-       DW_FORM_sec_offset.
+       DW_FORM_sec_offset, DW_FORM_ref_sig8.
 
        * readelf.c (print_debug): Don't bail if libdw setup fails.
        Suppress complaint if we only want .eh_frame anyway.
index 578bf10..1d8da26 100644 (file)
@@ -5188,6 +5188,13 @@ attr_callback (Dwarf_Attribute *attrp, void *arg)
              dwarf_form_string (form), (uintmax_t) dwarf_dieoffset (&ref));
       break;
 
+    case DW_FORM_ref_sig8:
+      printf ("           %*s%-20s (%s) {%6" PRIx64 "}\n",
+             (int) (level * 2), "", dwarf_attr_string (attr),
+             dwarf_form_string (form),
+             read_8ubyte_unaligned (attrp->cu->dbg, attrp->valp));
+      break;
+
     case DW_FORM_sec_offset:
       attrp->form = cbargs->offset_size == 8 ? DW_FORM_data8 : DW_FORM_data4;
       /* Fall through.  */