I have the same issue when debug into a wxwidgets-debug-dll.
1, gdb's bt command will return the file-name which is used when you build the target. I mean: if you makefile have some command:
then bt will return something like
if you use some absolute file-name, like
then bt will return the same absolute file-name.
2, I believe that our C::B can only handle two situations:
2.1, the returned file path is an absolute file path, so c::b can locate and open the file.
2.2, when a relative file path is returned from bt command, c::b try to locate the file relative to the project file(cbp file). This is your case, then c::b failed to locate the real file.
3, there is a solution:
There is a patch for gdb which can let the "bt" command return three type of filenames: basename, absolute-name, relative-name, see:
http://sourceware.org/ml/gdb-patches/2012-04/msg00106.htmlThen you can let the gdb to handle this case, and gdb can always return the absolute-name. By use the command:
set backtrace filename-display absolute
My build of gdb (see:
[OT] unofficial MinGW GDB gdb with python released) have this file already, but I'm not sure when it will be put in gdb cvs HEAD.