commit | 32cc1481721c4b11d5ffd95f928360dfc386ad69 | [log] [tgz] |
---|---|---|
author | Arnaldo Carvalho de Melo <acme@redhat.com> | Thu Feb 03 11:30:34 2022 -0300 |
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | Thu Feb 03 11:30:34 2022 -0300 |
tree | 2a2ef4e58f1ecfd559e310d9e128d6090e71f708 | |
parent | 6afc296eeb180e25f3a8adf10762c0850a8ae9fa [diff] |
fprintf: Consider enumerations without members as forward declarations To avoid emitting: enum x86_intercept_stage { }; Which isn't compilable. The DWARF info for this enum in the Linux kernel has the declaration flag set, but somehow this is not being available when loading from BTF. So do the best we can at this enumeration__fprintf() time, that is to just print zero members enumerations as a forward declaration. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>