Is the download supposed to include an executable already? Because for the life of me I cannot find it in my download (ver7.6). I've looked at similar questions, but the answers involve looking in the bin directory, which I also cannot find.
Bump with what little additional information I can provide.
I downloaded the gdb package (ver 7.6) from: ftp://sourceware.org/pub/gdb/releases/
From there I had no idea what to do. There was no information whatsoever if the debugger needed to be built, or if there were some specific steps to follow.
I went to the gdb website, and navigated to the sourceware page I posted in my previous post.
I skimmed over their different downloads, but I think they're all sources. At least, none of them had any binary release.
And I would love to compile it if I knew how. I saw some files named Makefiles, but they have extensions like def, in, and tpl. I get confused easily, so bare with me.
Starting the debuggee failed: No executable specified, use `target exec'.
I also tried running the debugger via command-prompt, but I get the same message (I attempted both writing out the exe extension and writing just the executable name).
Edit:
When I make clean builds, the debugger runs and terminates the program instantly with a good status. This should not happen, because the program I used the debugger on has user input and a single pause at the end.
Breakpoints could not work if the path/folder you've placed your project contains spaces or other special characters. To be safe use English letters, digits and '_'.
There is no space nor any special character in the path. Not even an underscore. :(
The MinGW I downloaded was from a distro at nuwen (thanks Catfish for the link). I don't really know names of other debuggers besides GDB, so if the author included a different debugger in there, I wouldn't know....
I was kind of hoping I would be able to use it with an IDE...
New Note:
When I set up Code::Blocks to use the compilers from the distro, the GDB debuggers from andywestken's recommendation and from the default Code::Blocks package come up with the error
No executable specified.
But when using the default compilers that come with the Code::Blocks package with either debugger version, the debug works perfectly.
You can. But to be quite serious, if you're on Windows, just use the VC++ debugger. It's more hassle-free.
EDIT: Although, I suppose if it isn't happening on the VC++ executable, you can't do that...
Code::Blocks and CodeLite both come included with MinGW (which includes GDB). Both also come equipped with a GUI to GDB. You can use either out of the box, assuming you can figure out how to work the GUI.