[LLVMbugs] [Bug 20741] New: missing debug info - clang does not respect debug levels?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 24 13:50:07 PDT 2014


            Bug ID: 20741
           Summary: missing debug info - clang does not respect debug
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: dblaikie at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

This program

 #include <string>
 int main() { std::string s; }

compiled with clang latest snapshot LLVM-3.6.0-r215932-win32.exe against
libstdc++ 4.9.1 and dumped with dwarf-dump produces a dump of 324 lines. When
compiled with gcc 4.9.1 the dump is 6879 lines. The commands to reproduce are:

 "c:\Program Files (x86)\LLVM\bin\clang.exe" -c -g -O0 -gdwarf-4 a.cpp -target
 llvm-dwarfdump.exe a.o > a_clang.txt

 gcc -c -g -O0 a.cpp
 llvm-dwarfdump.exe a.o > a_gcc.txt

Most of the debug info is missing in the clang output, for example there are no
DW_TAG_members at all.

I tried various -g levels 0,1,2,3 with no change at all in the dump.
Maybe the -g debugging level logic is broken?

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140824/003ab379/attachment.html>

More information about the llvm-bugs mailing list