]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Don't use dwarf_tag_string, but dwarf::tags::name for dwarf_edit_output test.
authorMark Wielaard <mjw@redhat.com>
Fri, 25 Feb 2011 12:45:14 +0000 (13:45 +0100)
committerMark Wielaard <mjw@redhat.com>
Fri, 25 Feb 2011 12:45:14 +0000 (13:45 +0100)
tests/Makefile.am
tests/dwarf_edit_output.cc

index a33e0521dd40c6822259d99ffd33aa72d39cb5ae..641bce2e6dc0d14a9e30f7b38c2dcb305ba71fee 100644 (file)
@@ -214,8 +214,7 @@ dwarf_print_LDADD = $(libdwpp) $(libmudflap) -ldl
 dwarf_edit_SOURCES = dwarf_edit.cc print-die.cc
 dwarf_edit_LDADD = $(libdwpp) $(libmudflap) -ldl
 
-dwarf_edit_output_SOURCES = dwarf_edit_output.cc print-die.cc \
-                           ../src/dwarfstrings.c
+dwarf_edit_output_SOURCES = dwarf_edit_output.cc print-die.cc
 dwarf_edit_output_LDADD = $(libdwpp) $(libmudflap) -ldl
 
 arextract_LDADD = $(libelf) $(libmudflap)
index b1483d190345b01e7c9defe02a461f15797a2f97..7e3def9468468b298ab4504bcb92d19be95993e6 100644 (file)
@@ -37,8 +37,6 @@
 
 #include "c++/subr.hh"
 
-#include "../src/dwarfstrings.h"
-
 using namespace elfutils;
 using namespace std;
 
@@ -520,7 +518,7 @@ test_last_two_dies (dwarf_edit &in, dwarf_output &out, int tag, bool same,
       cmp compare;
       if (compare.compare_dies (*die1, *die2, in) != same)
        error (-1, 0, "dwarf_comparator fail %s test #%d '%s'",
-              dwarf_tag_string (tag), n, name);
+              dwarf::tags::name (tag).c_str (), n, name);
     }
 
   dwarf_output::compile_units_type::const_iterator cu;
@@ -537,7 +535,7 @@ test_last_two_dies (dwarf_edit &in, dwarf_output &out, int tag, bool same,
       it++;
     }
   if (show_output)
-    cout << "offset last (" << dwarf_tag_string (tag) << ") cu1: "
+    cout << "offset last (" << dwarf::tags::name (tag) << ") cu1: "
         << hex << off1 << endl;
 
   cu++;
@@ -549,14 +547,14 @@ test_last_two_dies (dwarf_edit &in, dwarf_output &out, int tag, bool same,
       it++;
     }
   if (show_output)
-    cout << "offset last (" << dwarf_tag_string (tag) << ") cu2: "
+    cout << "offset last (" << dwarf::tags::name (tag) << ") cu2: "
         << hex << off2 << endl;
 
   bool both_zero = off1 == 0 && off2 == 0;
   bool equal = off1 == off2;
   if (! both_zero && equal != same)
     error (-1, 0, "dwarf_comparator fail %s test #%d '%s'",
-          dwarf_tag_string (tag), n, name);
+          dwarf::tags::name (tag).c_str (), n, name);
 
 }