llvm-mingw icon indicating copy to clipboard operation
llvm-mingw copied to clipboard

adding split debug info to the release?

Open nolange opened this issue 4 months ago • 1 comments

i would need to debug / backtrace some windows exception. seems to be originating in libc++.

the release binaries dont contain the debug info. I am not aware what functionality the win debuggers offer (and the different formats - dwarf or pdb) - on linux i would expect a separate file with the debuginfo.

as far as i know:

  • pdb is supported with lldb and windbg
  • dwarf is supported with gdb and lldb
  • debug info in static libraries would need to dwarf !?

i am likely to play around with this a bit, any hints which way to go?

nolange avatar Mar 08 '24 18:03 nolange

You can add -gcodeview to CFLAGS when building libc++, and then add -Wl,--pdb= when linking.

Andarwinux avatar Mar 10 '24 04:03 Andarwinux