April 05, 2014 GDB in DDT: File format not recognized | ||||
---|---|---|---|---|
| ||||
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? |
April 05, 2014 Re: GDB in DDT: File format not recognized | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike | 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.
|
Copyright © 1999-2021 by the D Language Foundation