diff options
author | Petr Machata <pmachata@redhat.com> | 2015-03-18 19:42:02 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2015-03-31 19:01:40 +0200 |
commit | 7f617347794f7d57f69d08f38c00f3f6ad221a56 (patch) | |
tree | 0c72ce8e93adc854c7d8a3ed44446e0ef21af78c /config | |
parent | 5370bb0a6492cb4669c8375e53748a4303997ed7 (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 <pmachata@redhat.com>
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 7 | ||||
-rwxr-xr-x | config/known-dwarf.awk | 13 |
2 files changed, 9 insertions, 11 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index 409e2b1b..586ebb03 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,10 @@ +2015-03-18 Petr Machata <pmachata@redhat.com> + + * known-dwarf.awk (comment): Drop all uses of this variable. + (END): Always emit the non-_DESC variant. Emit + DWARF_ALL_KNOWN_DW_ instead of ALL_KNOWN_DW_*, and + DWARF_ONE_KNOWN_DW_ instead of ONE_KNOWN_DW_*. + 2015-02-20 Petr Machata <pmachata@redhat.com> * known-dwarf.awk (END): Drop useless variables lo, hi. Merge two diff --git a/config/known-dwarf.awk b/config/known-dwarf.awk index 4d89f0f3..bc9b02db 100755 --- a/config/known-dwarf.awk +++ b/config/known-dwarf.awk @@ -33,11 +33,6 @@ $1 ~ /DW([_A-Z]+)_([^ ]+)/ { DW[set] = DW[set] "," elt; else DW[set] = elt; - if ($NF == "*/" && $4 == "/*") { - c = $5; - for (i = 6; i < NF; ++i) c = c " " $i; - comment[set, elt] = c; - } } END { @@ -49,16 +44,12 @@ END { split(DW[set], elts, ","); m = asort(elts); if (m == 0) continue; - print "\n#define ALL_KNOWN_DW_" set " \\"; + print "\n#define DWARF_ALL_KNOWN_DW_" set " \\"; for (j = 1; j <= m; ++j) { elt = elts[j]; if (elt ~ /(low?|hi|high)_user$/) continue; - if (comment[set, elt]) - print " ONE_KNOWN_DW_" set "_DESC (" elt ", DW_" set "_" elt \ - ", \"" comment[set, elt] "\") \\"; - else - print " ONE_KNOWN_DW_" set " (" elt ", DW_" set "_" elt ") \\"; + print " DWARF_ONE_KNOWN_DW_" set " (" elt ", DW_" set "_" elt ") \\"; } print " /* End of DW_" set "_*. */"; } |