Issue 55418
Summary clang not emitting debug information with gsplit-dwarf option without -g option
Labels new issue
Assignees
Reporter kavitha-natarajan
    clang needs -g option to emit debug information along with -gsplit-dwarf option. If -gsplit-dwarf option is specified without -g option, no debug info is emitted and .dwo file is not created. Like other -g options, such as, -gdwarf-*, -gsplit-dwarf also should be enabling debug information. gcc compiler emits debug information with just -gsplit-dwarf option and does not require explicit -g option.

$ clang -gsplit-dwarf=split sample.c   // No debug info and no sample.dwo file generaged
$ clang -gsplit-dwarf=split -g sample.c  // sample.dwo file generated
$ gcc -gsplit-dwarf sample.c     // sample.dwo file generated

I tested with clang-14 & clang-15. It is not the case with older clang.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to