[LLVMbugs] [Bug 13425] New: Should emit debug symbols for values of used anonymous enums

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Jul 20 17:02:50 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13425

             Bug #: 13425
           Summary: Should emit debug symbols for values of used anonymous
                    enums
           Product: new-bugs
           Version: 3.1
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: sethk at meowfishies.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8935
  --> http://llvm.org/bugs/attachment.cgi?id=8935
Test file for enum debug symbols

It would be really great if I could debug using all enumeration constants, even
if they were defined as part of an anonymous enum or cast to an integer type. 
It might be too cumbersome to include all anonymous enum symbols encountered
during compilation, but how about just the ones that have been used as
constants in the input, either by treating those single values the same as a
"static const unsigned,” or even better, by including all values that were
defined in that enum block.

I’m including a test source, which should include a symbol for, at the very
least, “baz,” if not the other enum constants.  Note that creating an instance
of type an_enum_type will generate the missing symbols.

This can be tested with:
llvm -g3 type.c
dwarfdump -a a.out.dSYM | grep baz

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list