]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
readelf: Use DW_LANG_ObjC and known[op].
authorMark Wielaard <mjw@redhat.com>
Sun, 29 Jul 2012 12:05:20 +0000 (14:05 +0200)
committerMark Wielaard <mjw@redhat.com>
Sun, 29 Jul 2012 12:05:20 +0000 (14:05 +0200)
Not all patches from the dwarfstrings branch were applied, causing compile
failures.

src/ChangeLog
src/readelf.c

index 78b9a0b679be1529f9dcb6e6dad9ca4d512d2cf5..aa7e2a5a80e366a3440a9f4717bfdceea162c766 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-29  Mark Wielaard  <mjw@redhat.com>
+
+       * readelf.c (dwarf_lang_string): Use DW_LANG_ObjC, not DW_LANG_Objc.
+       (print_ops): Use known[op], not op_name, for DW_OP_GNU_parameter_ref.
+
 2012-07-19  Mark Wielaard  <mjw@redhat.com>
 
        * readelf.c (print_ops): Handle DW_OP_GNU_parameter_ref.
index 93f56c3b6c72b03856774e2a7d34d5b462e5ee6d..3a27f8f065ee5814dfeb7ba7d299b7e8502062fc 100644 (file)
@@ -3683,7 +3683,7 @@ dwarf_lang_string (unsigned int lang)
       [DW_LANG_Ada95] = "Ada95",
       [DW_LANG_Fortran95] = "Fortran95",
       [DW_LANG_PL1] = "PL1",
-      [DW_LANG_Objc] = "Objective C",
+      [DW_LANG_ObjC] = "Objective C",
       [DW_LANG_ObjC_plus_plus] = "Objective C++",
       [DW_LANG_UPC] = "UPC",
       [DW_LANG_D] = "D",
@@ -4408,7 +4408,7 @@ print_ops (Dwfl_Module *dwflmod, Dwarf *dbg, int indent, int indentrest,
             DW_TAG_formal_parameter.  */
          NEED (4);
          printf ("%*s[%4" PRIuMAX "] %s [%6" PRIxMAX "]\n",
-                 indent, "", (uintmax_t) offset, op_name,
+                 indent, "", (uintmax_t) offset, known[op],
                  (uintmax_t) read_4ubyte_unaligned (dbg, data));
          CONSUME (4);
          data += 4;