Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/external/cddl/osnet/dist/tools/ctf/cvt Pull up following ...
details: https://anonhg.NetBSD.org/src/rev/e53c3f089da5
branches: netbsd-7
changeset: 799445:e53c3f089da5
user: snj <snj%NetBSD.org@localhost>
date: Mon Jun 29 17:18:10 2015 +0000
description:
Pull up following revision(s) (requested by chs in ticket #855):
external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c: revision 1.11
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 a65dc5e83b9a -r e53c3f089da5 external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Mon Jun 29 17:15:28 2015 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c Mon Jun 29 17:18:10 2015 +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