/* Pedantic checking of DWARF files.
- Copyright (C) 2009, 2010 Red Hat, Inc.
+ Copyright (C) 2009, 2010, 2011 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
if ((at2 = m.find ((*at).first)) != m.end ())
wr_message (to_where (die),
cat (mc_impact_3, mc_acc_bloat, mc_die_rel))
- << "Attribute " << dwarf_attr_string (at2->first)
- << " is duplicated at " << dwarf_attr_string (attr.first)
+ << "Attribute " << dwarf::attributes::name (at2->first)
+ << " is duplicated at " << dwarf::attributes::name (attr.first)
<< " (" << pri::ref (referree) << ")"
<< (at2->second == (*at).second
? "." : " with different value.")
/*
- Copyright (C) 2009,2010 Red Hat, Inc.
+ Copyright (C) 2009,2010,2011 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
kt = expect.find (name);
if (kt == expect.end ())
wr_message (where, cat (mc_impact_3, mc_info))
- << ": DIE \"" << dwarf_tag_string (parent_tag)
- << "\" has attribute \"" << dwarf_attr_string (name)
+ << ": DIE \"" << dwarf::tags::name (parent_tag)
+ << "\" has attribute \"" << dwarf::attributes::name (name)
<< "\", which is not expected." << std::endl;
try
dwarf::value_space vs = (*jt).second.what_space ();
if ((exp_vs & (1U << vs)) == 0)
wr_message (where, cat (mc_impact_3, mc_info))
- << ": in DIE \"" << dwarf_tag_string (parent_tag)
- << "\", attribute \"" << dwarf_attr_string (name)
+ << ": in DIE \"" << dwarf::tags::name (parent_tag)
+ << "\", attribute \"" << dwarf::attributes::name (name)
<< "\" has value of unexpected type \"" << vs
<< "\"." << std::endl;
}
catch (...)
{
wr_message (where, cat (mc_impact_4, mc_info, mc_error))
- << ": in DIE \"" << dwarf_tag_string (parent_tag)
+ << ": in DIE \"" << dwarf::tags::name (parent_tag)
<< "\", couldn't obtain type of attribute \""
- << dwarf_attr_string (name) << "\"." << std::endl;
+ << dwarf::attributes::name (name) << "\"."
+ << std::endl;
}
}
/* Pedantic checking of DWARF files
- Copyright (C) 2008,2009,2010 Red Hat, Inc.
+ Copyright (C) 2008,2009,2010,2011 Red Hat, Inc.
This file is part of Red Hat elfutils.
Red Hat elfutils is free software; you can redistribute it and/or modify
Network licensing program, please visit www.openinventionnetwork.com
<http://www.openinventionnetwork.com>. */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include "../src/dwarfstrings.h"
#include "pri.hh"
#include <sstream>
+#include "c++/dwarf"
std::ostream &
pri::operator << (std::ostream &os, pri::pribase const &obj)
}
pri::attr::attr (int attr_name)
- : pribase (dwarf_attr_string (attr_name))
+ : pribase (elfutils::dwarf::attributes::name (attr_name))
{}
pri::form::form (int attr_form)
{}
pri::tag::tag (int die_tag)
- : pribase (dwarf_tag_string (die_tag))
+ : pribase (elfutils::dwarf::tags::name (die_tag))
{}
pri::locexpr_opcode::locexpr_opcode (int opcode)