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 Handle enum forward d...



details:   https://anonhg.NetBSD.org/src/rev/4b2b98379758
branches:  trunk
changeset: 784106:4b2b98379758
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 18 16:23:48 2013 +0000

description:
Handle enum forward declarations.

diffstat:

 external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (14 lines):

diff -r 799e6a91865d -r 4b2b98379758 external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c
--- a/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c    Fri Jan 18 16:22:35 2013 +0000
+++ b/external/cddl/osnet/dist/tools/ctf/cvt/dwarf.c    Fri Jan 18 16:23:48 2013 +0000
@@ -767,7 +767,9 @@
 
        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 */



Home | Main Index | Thread Index | Old Index