I am using Eclipse on a Windows system (64-bit) for C++ code and the compiler is GCC/G++. I have created a .exe and in the end it is showing as amd64/le, and I am not able to debug. When I am trying to debug, I am getting the error as
Error while launching command: gdb --version CreateProcess error=2, The system cannot find the file specified
GDB. The tool used by Eclipse Embedded CDT for debugging is the Arm version of GDB, the venerable GNU debugging tool.
Invoking GDB. Invoke GDB by running the program gdb . Once started, GDB reads commands from the terminal until you tell it to exit. You can also run gdb with a variety of arguments and options, to specify more of your debugging environment at the outset.
Gdb is a debugger for C (and C++). It allows you to do things like run the program up to a certain point then stop and print out the values of certain variables at that point, or step through the program one line at a time and print out the values of each variable after executing each line.
gdb will stop your program at whatever line it has just executed. From here you can examine variables and move through your program.
You can have a look at this link. It helped me solve this problem just now,
The steps to follow are:
gdb.exe
from the "bin" folder of your MinGW folder. If gdb
is not present, navigate the command prompt to the bin folder and run mingw-get.exe install gdb
.(Mostly it should be in something like C:\Min_GW
).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With