www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - dwarf debug info under windows ?

reply Basile B. <b2.temp gmx.com> writes:
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
parent reply kinke <noone nowhere.com> writes:
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
parent reply Basile B. <b2.temp gmx.com> writes:
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:
 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).
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.
 MinGW isn't fully supported though, so unless GDB supports 
 CodeView in the meantime, it probably won't work.
Jul 02 2020
parent kinke <noone nowhere.com> writes:
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