Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/tools/ctf/cvt don't fail for anonym...
details: https://anonhg.NetBSD.org/src/rev/65c93c50fb2f
branches: trunk
changeset: 333406:65c93c50fb2f
user: christos <christos%NetBSD.org@localhost>
date: Sat Nov 01 23:21:31 2014 +0000
description:
don't fail for anonymous unions.
diffstat:
external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (18 lines):
diff -r a5cabaff1903 -r 65c93c50fb2f external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Sat Nov 01 21:46:46 2014 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Sat Nov 01 23:21:31 2014 +0000
@@ -1162,6 +1162,14 @@
continue;
}
+ /*
+ * anonymous union members are OK.
+ * XXX: we should consistently use NULL, instead of ""
+ */
+ if (mt->t_type == UNION &&
+ (mt->t_name == NULL || mt->t_name[0] == '\0'))
+ continue;
+
printf("%s unresolved type = %d (%s)\n", tdesc_name(tdp),
mt->t_type, tdesc_name(mt));
dw->dw_nunres++;
Home |
Main Index |
Thread Index |
Old Index