tags:

views:

247

answers:

1

For some reason I can't get gdb to recognize the files in my project when debugging. I've tried a variety of things, including downloading different version, etc. and the last thing I did was completely overwrite all of MingW with Twilight Dragon Media's Bundle Package.

Does anyone know how to solve this issue? The odd thing was that when I first started using it, it was working fine, and then it suddenly stopped working.

I'm using Code::Blocks and I have the -g checked for the debug version of the project. I'm running on Windows Vista.

A: 

It might be point... GDB locates source files by file path/name from object module debug information. So if you moved your sources at least you should rebuild your project. Also this is related to you if you are trying to get source support on different host which has no visibility to your sources at all.

The most important thing to remember is:

  • Debug information doesn't contain sources itself, only paths where to find them. People often doesn't know it.

Excuse me if it is not your case but I just faced similar thing and I suggest this might help (at least for other people cases).

Roman Nikitchenko
I rebuild the whole project and it worked.
Anonymous