www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - program compiled with -g flag give no debugging symbols found on gdb.

reply Marc <jckj33 gmail.com> writes:
What am I missing? I compiled na application with -g flag but 
when I do:

 gdb --args myapp.exe foo
I get:
 Reading symbols from myapp.exe...(no debugging symbols 
 found)...done.
What am I missing?
Feb 27 2018
parent Basile B. <b2.temp gmx.com> writes:
On Tuesday, 27 February 2018 at 18:20:33 UTC, Marc wrote:
 What am I missing? I compiled na application with -g flag but 
 when I do:

 gdb --args myapp.exe foo
I get:
 Reading symbols from myapp.exe...(no debugging symbols 
 found)...done.
What am I missing?
because for Windows no DWARF2 debug infos are generated, which are the ones GDB recognize. By default they are to the CodeView (CV) format for win32, so only cdb can be used. For win64 and mscoff32 it's yet another format (PDB). People use https://github.com/rainers/mago and https://github.com/rainers/cv2pdb to convert infos in DlangIDE and Visual D.
Feb 27 2018