digitalmars.D.ldc - dwarf debug info under windows ?
- Basile B. (3/3) Jul 02 2020 If I compile a debug build with LDC2, targeting amd64 and without
If I compile a debug build with LDC2, targeting amd64 and without VS installed, does LDC generate debug infos compatible with GDB or not ?
Jul 02 2020
On Thursday, 2 July 2020 at 07:22:01 UTC, Basile B. wrote:If I compile a debug build with LDC2, targeting amd64 and without VS installed, does LDC generate debug infos compatible with GDB or not ?LDC/LLVM generates CodeView for MSVC targets and DWARF for MinGW (...-windows-gnu triples). MinGW isn't fully supported though, so unless GDB supports CodeView in the meantime, it probably won't work.
Jul 02 2020
On Thursday, 2 July 2020 at 09:43:22 UTC, kinke wrote:On Thursday, 2 July 2020 at 07:22:01 UTC, Basile B. wrote:sounds like what I want, I'll try this. So in theory when MS toolchain is not installed, LDC uses the MinGW libs, so this path should be taken as well.If I compile a debug build with LDC2, targeting amd64 and without VS installed, does LDC generate debug infos compatible with GDB or not ?LDC/LLVM generates CodeView for MSVC targets and DWARF for MinGW (...-windows-gnu triples).MinGW isn't fully supported though, so unless GDB supports CodeView in the meantime, it probably won't work.
Jul 02 2020
On Thursday, 2 July 2020 at 10:29:52 UTC, Basile B. wrote:So in theory when MS toolchain is not installed, LDC uses the MinGW libs, so this path should be taken as well.Nope, it uses the MinGW-*based* libs, where all regular MinGW extensions/overrides of the underlying MS C runtime have been patched out. They cannot be used for ...-windows-gnu targets.
Jul 02 2020