summaryrefslogtreecommitdiffstats
path: root/tests/show-die-info.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2015-03-18 19:42:02 +0100
committerPetr Machata <[email protected]>2015-03-31 19:01:40 +0200
commit7f617347794f7d57f69d08f38c00f3f6ad221a56 (patch)
tree0c72ce8e93adc854c7d8a3ed44446e0ef21af78c /tests/show-die-info.c
parent5370bb0a6492cb4669c8375e53748a4303997ed7 (diff)
Publish known-dwarf.h
- Make the macro names properly scoped (DWARF_ALL_KNOWN_* and DWARF_ONE_KNOWN_*). - Simplify the calling convention: don't keep track of the comment associated with the enumerator, always use the non-_DESC DWARF_ONE_KNOWN_* callback. - Install known-dwarf.h alongside libdw.h and others. Signed-off-by: Petr Machata <[email protected]>
Diffstat (limited to 'tests/show-die-info.c')
-rw-r--r--tests/show-die-info.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/show-die-info.c b/tests/show-die-info.c
index 0c298acd..34e27a3b 100644
--- a/tests/show-die-info.c
+++ b/tests/show-die-info.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998-2002, 2004, 2006, 2012 Red Hat, Inc.
+/* Copyright (C) 1998-2002, 2004, 2006, 2012, 2015 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <[email protected]>, 1998.
@@ -33,9 +33,9 @@ dwarf_tag_string (unsigned int tag)
{
switch (tag)
{
-#define ONE_KNOWN_DW_TAG(NAME, CODE) case CODE: return #NAME;
- ALL_KNOWN_DW_TAG
-#undef ONE_KNOWN_DW_TAG
+#define DWARF_ONE_KNOWN_DW_TAG(NAME, CODE) case CODE: return #NAME;
+ DWARF_ALL_KNOWN_DW_TAG
+#undef DWARF_ONE_KNOWN_DW_TAG
default:
return NULL;
}
@@ -46,9 +46,9 @@ dwarf_attr_string (unsigned int attrnum)
{
switch (attrnum)
{
-#define ONE_KNOWN_DW_AT(NAME, CODE) case CODE: return #NAME;
- ALL_KNOWN_DW_AT
-#undef ONE_KNOWN_DW_AT
+#define DWARF_ONE_KNOWN_DW_AT(NAME, CODE) case CODE: return #NAME;
+ DWARF_ALL_KNOWN_DW_AT
+#undef DWARF_ONE_KNOWN_DW_AT
default:
return NULL;
}