Hello!

I study work with gdb debugger.

Posted by "Hello World" in C ++

Compiled C:\Dev-Cpp\source>gcc hello_world.cpp

I launch the debugger C:\Dev-Cpp\source>gdb -q a.exe

There is an error

C:\Dev-Cpp\source>gdb -q a.exe c:/cygmnt/prj/pkg/src/gdb/mingw32/gdb/dwarf2read.c:985: gdb-internal-error: read _comp_unit_head: dwarf from non elf file An internal GDB error was detected. This may make further debugging unreliable. Quit this debugging session? (y or n)

  • And the -g key is not needed for translation? - alexlz
  • These are some kind of errors with gdb. The translation key -g is needed only to get debug information in the "human" form, it does not affect the performance of normal gdb (in * nix). Although, without -g, it’s impossible to study work with a debugger. - avp

1 answer 1

Installed MinGW version 4.7.1 everything worked.