[cfe-users] Should clang++ -g produce debugging info for all types?

Bob Eastbrook via cfe-users cfe-users at lists.llvm.org
Thu Jul 25 11:41:42 PDT 2019


On Fedora 30, "clang++ -g main.cc" does not emit debugging information
for types such as std::string.  I can only get complete debugging
information by including "-fno-limit-debug-info".

On Ubuntu 19.04, "clang++ -g" emits debugging info for std::string as expected.

Which behavior of "-g" is correct?  Can anyone explain why each
platform behaves differently?



More information about the cfe-users mailing list