/* 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
private:
void not_available (section_id sec_id)
{
- wr_error (WHERE (sec_id, NULL))
+ wr_error (section_locus (sec_id))
<< "data not found." << std::endl;
}
struct sec *sec = file->sec + cur->secndx;
sec->rel.type = cur->reltype;
if (sec->data == NULL)
- wr_error (WHERE (sec->id, NULL))
+ wr_error (section_locus (sec->id))
<< "this data-less section has a relocation section."
<< std::endl;
else if (read_rel (file, sec, cur->reldata, file->addr_64))
if (secentry *str = secinfo.get (".debug_str"))
if (str->reldata != NULL)
- wr_message (WHERE (sec_str, NULL), mc_impact_2 | mc_elf)
+ wr_message (section_locus (sec_str), mc_impact_2 | mc_elf)
<< "there's a relocation section associated with this section."
<< std::endl;
}
{
add (sec_info, ".debug_info", "CU %"PRId64, "DIE %#"PRIx64);
- add (sec_abbrev, ".debug_abbrev",
- "section %"PRId64, "abbreviation %"PRId64, "abbr. attribute %#"PRIx64);
-
add (sec_aranges, ".debug_aranges",
"table %"PRId64, "arange %#"PRIx64);
add (sec_pubtypes, ".debug_pubtypes",
"pubtype table %"PRId64, "pubtype %#"PRIx64);
- add (sec_str, ".debug_str", "offset %#"PRIx64);
-
add (sec_line, ".debug_line", "table %"PRId64, "offset %#"PRIx64);
add (sec_loc, ".debug_loc", "loclist %#"PRIx64, "offset %#"PRIx64);
where
WHERE (section_id sec, locus const *next)
{
+ assert (sec != sec_abbrev);
+ assert (sec != sec_str);
where::formatter const *fmt = wf_for_section (sec);
return where (fmt, next);
}