Issue 63433
Summary [clang] Question: How to add line information to pdb files
Labels
Assignees
Reporter Febbe
    When compiling a program with MSYS + CLANG64, the pc to source code line numbers are not added to the emmitted pdb file.

But I require it, to generate meaningful stack traces. I believe, that I could not find a flag for this. Or is this currently not supported (yet).

E.g.: Compiling a stacktrace tester with or msys/clang:

```
0> test_stacktrace_17+0x1023
1> test_stacktrace_17+0x37E0
2> KERNEL32!BaseThreadInitThunk+0x1D
3> ntdll!RtlUserThreadStart+0x28
```

Expected result from MSVC  or native + clang-cl:

```
0> C:\Users\Febbe\workspace\test\test\main.cpp(7): test_stacktrace_17!main+0x16
1> D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl(288): test_stacktrace_17!__scrt_common_main_seh+0x10C
2> KERNEL32!BaseThreadInitThunk+0x1D
3> ntdll!RtlUserThreadStart+0x28
PS C:\Users\Febbe\workspace\test\build> 
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to