Module Name:    src
Committed By:   christos
Date:           Fri Jan 18 16:23:48 UTC 2013

Modified Files:
        src/external/cddl/osnet/dist/tools/ctf/cvt: dwarf.c

Log Message:
Handle enum forward declarations.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
diff -u src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c:1.5 src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c:1.6
--- src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c:1.5	Tue Jan 10 03:42:22 2012
+++ src/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c	Fri Jan 18 11:23:48 2013
@@ -767,7 +767,9 @@ die_enum_create(dwarf_t *dw, Dwarf_Die d
 
 	debug(3, "die %llu: creating enum\n", off);
 
-	tdp->t_type = ENUM;
+	tdp->t_type = (die_isdecl(dw, die) ? FORWARD : ENUM);
+	if (tdp->t_type != ENUM)
+		return;
 
 	(void) die_unsigned(dw, die, DW_AT_byte_size, &uval, DW_ATTR_REQ);
 	/* Check for bogus gcc DW_AT_byte_size attribute */

Reply via email to