www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - GDB in DDT: File format not recognized

reply "Mike" <mike lowland.com> writes:
When I try to debug a simple hello world application, I get the
following error when running a debug build:

    Error message from debugger back end [...]hello.exe not in
executable format: File format not recognized

I'm using MinGW's GDB. The application targets 32bit and GDB is
also 32-bit:

    gdb --version
    GNU gdb (GDB) 7.6.1
    [...]
    This GDB was configured as "mingw32".

I've tried forcing both the -g and -gc options in the dub package
file but the error still exists. Did I mis-configure something?
Apr 05 2014
parent "Mike" <mike lowland.com> writes:
On Saturday, 5 April 2014 at 18:37:06 UTC, Mike wrote:
 When I try to debug a simple hello world application, I get the
 following error when running a debug build:

    Error message from debugger back end [...]hello.exe not in
 executable format: File format not recognized

 I'm using MinGW's GDB. The application targets 32bit and GDB is
 also 32-bit:

    gdb --version
    GNU gdb (GDB) 7.6.1
    [...]
    This GDB was configured as "mingw32".

 I've tried forcing both the -g and -gc options in the dub 
 package
 file but the error still exists. Did I mis-configure something?
For those interested, the problem is that dmd supplies symbols in a format not supported by dgb. You will have to convert these with cv2pdb or use the gdc compiler. Also this is not an IDE problem.
Apr 05 2014