https://bugs.llvm.org/show_bug.cgi?id=41451

            Bug ID: 41451
           Summary: clang-cl and libc++ produce PDBs that confuse windbg /
                    cdb
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: MachO
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

C:\src\chrome\src>type test.cc
#include <string>

int main() {
  std::string s = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
  std::string s2 = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii";
  return s.size() + s2.size();
}



>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe" test.cc /I 
>"buildtools\third_party\libc++\trunk\include" -D_LIBCPP_NO_AUTO_LINK 
>-D_LIBCPP_ABI_UNSTABLE libc++.dll.lib /Zi


>cdb -c "bp `test.cc:6`; g; dv; q" test.exe


[...]
Breakpoint 0 hit
              s = class
std::__1::basic_string<char,std::__1::char_traits<char>,std::__1::allocator<char>
>
             s2 = <unknown base type 80000013>





Note missing output for s2. Works fine without libc++:

>"third_party\llvm-build\Release+Asserts\bin\clang-cl.exe" test.cc /Zi

>cdb -c "bp `test.cc:6`; g; dv; q" test.exe


Breakpoint 0 hit
              s = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"
             s2 = "hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii"



I have a local natvis thing that makes cdb print "hiiiiiii..." with libc++, but
this bug happens without that too. This is about the "<unknown base type>"
error.



Seems to happen with both link.exe and lld-link.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to