[LIB]: Avoid emitting top level unnamed unions and structs

Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2007-01-15 10:34:13 -02:00
parent 9a413e60a3
commit 348fdc8d1a
2 changed files with 11 additions and 5 deletions

View File

@ -2747,11 +2747,13 @@ int cus__emit_type_definitions(struct cus *self, struct cu *cu,
if (tag->tag == DW_TAG_structure_type)
class__find_holes(tag__class(tag), cu);
tag__print(tag, cu, prefix, suffix);
if (ctype->name != NULL || suffix != NULL || prefix != NULL) {
tag__print(tag, cu, prefix, suffix);
if (tag->tag != DW_TAG_structure_type)
putchar(';');
if (tag->tag != DW_TAG_structure_type)
putchar(';');
putchar('\n');
}
putchar('\n');
return 1;
}

View File

@ -3,7 +3,7 @@
Name: dwarves
Version: 0
Release: 4
Release: 5
License: GPL
Summary: Dwarf Tools
Group: Base
@ -81,6 +81,10 @@ rm -rf %{buildroot}
%{_libdir}/%{libname}.so
%changelog
* Sat Jan 13 2007 Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
- 9a413e60a3875980d99817722bf019cba3a24573
- pahole --nr_methods, improvements in tag__print, better support for unions
* Fri Jan 12 2007 Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
- a1f5422656a91568a8b4edbcebaae9c1837b5cbd
- Support a DW_TAG_reference_type