Hi - I had the same problem (all my source files are in src/ and below...) and created a patch that seems to solve the problem (for me, at least):
--- codeblocks-9999/src/plugins/debuggergdb/debuggergdb.cpp 2006-03-19 15:09:18.000000000 -0800
+++ codeblocks-9999/src/plugins/debuggergdb/debuggergdb.cpp 2006-03-19 15:08:35.000000000 -0800
@@ -950,9 +950,9 @@
void DebuggerGDB::ConvertToGDBFile(wxString& str)
{
wxFileName fname = str;
- str = fname.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);
- DebuggerGDB::ConvertToGDBDirectory(str);
- str << fname.GetFullName();
+// str = fname.GetPath(wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR);
+// DebuggerGDB::ConvertToGDBDirectory(str);
+ str = fname.GetFullName();
}
// static
Using the ebuild from this post: http://forums.gentoo.org/viewtopic-t-440412.html (http://forums.gentoo.org/viewtopic-t-440412.html) you can create a file called something like 99_all_gdb-path.patch and just drop it in your /usr/local/portage/dev-util/codeblocks/files/patches directory, re-digest the ebuild, and then re-emerge.
Hope it helps...
-scott