summaryrefslogtreecommitdiffstats
path: root/src/dwarfstrings.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2009-08-18 20:32:26 +0200
committerPetr Machata <[email protected]>2010-08-18 14:55:09 +0200
commitc815b160eb3abaad596547d4ea2ee4b14805a633 (patch)
treed72eceb2dd3f2e13b241172a9893dabdfe236f38 /src/dwarfstrings.c
parent802e66898ab60c57812258fc71eb8be2c602054a (diff)
dwarflint: Consolidate checking and relocation of attribute values
* This was done to add DW_FORM_sec_offset, but the structure of the code wasn't such that would make this addition easy. The revamp ended up being quite extensive, and I never got around to checking whether the support for the new form really works. * Checked on all elfutils ELF files that old and new dwarflint emit the same messages.
Diffstat (limited to 'src/dwarfstrings.c')
-rw-r--r--src/dwarfstrings.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dwarfstrings.c b/src/dwarfstrings.c
index 34c86d34..fdb3ede4 100644
--- a/src/dwarfstrings.c
+++ b/src/dwarfstrings.c
@@ -353,7 +353,11 @@ dwarf_form_string (unsigned int form)
[DW_FORM_ref4] = "ref4",
[DW_FORM_ref8] = "ref8",
[DW_FORM_ref_udata] = "ref_udata",
- [DW_FORM_indirect] = "indirect"
+ [DW_FORM_indirect] = "indirect",
+ [DW_FORM_sec_offset] = "sec_offset",
+ [DW_FORM_exprloc] = "exprloc",
+ [DW_FORM_flag_present] = "flag_present",
+ [DW_FORM_ref_sig8] = "ref_sig8",
};
const unsigned int nknown_forms = (sizeof (known_forms)
/ sizeof (known_forms[0]));
@@ -365,7 +369,7 @@ dwarf_form_string (unsigned int form)
if (unlikely (result == NULL))
{
- snprintf (buf, sizeof buf, gettext ("unknown form %" PRIx64),
+ snprintf (buf, sizeof buf, gettext ("unknown form %#" PRIx64),
(uint64_t) form);
result = buf;
}