User forums > Help
Problem with own makefile and GDB is back again
kai7:
Hi,
Some months ago I posted this problem with an own makefile and breakpoints:
http://forums.codeblocks.org/index.php?topic=4064
One nice day I downloaded the nightly build CB_20061109_rev3197. There the source files were given relative when C::B sets a breakpoint. So it actually solved my problem. Now I downloaded a new nightly build and the problem is there again. Under the advanced compiler options I found now an option "Use Full Paths for source files (GDB workaround)". But this options doesn't change this behavior. Is there anything I could do or should I stick to the old version?
Thank you,
Kai
Pecan:
--- Quote from: kai7 on January 31, 2007, 12:10:37 pm ---Hi,
Some months ago I posted this problem with an own makefile and breakpoints:
http://forums.codeblocks.org/index.php?topic=4064
One nice day I downloaded the nightly build CB_20061109_rev3197. There the source files were given relative when C::B sets a breakpoint. So it actually solved my problem. Now I downloaded a new nightly build and the problem is there again. Under the advanced compiler options I found now an option "Use Full Paths for source files (GDB workaround)". But this options doesn't change this behavior. Is there anything I could do or should I stick to the old version?
Thank you,
Kai
--- End quote ---
Others have found that removing spaces and special chars from filenames solves these problems.
kai7:
--- Quote ---Others have found that removing spaces and special chars from filenames solves these problems.
--- End quote ---
Thank you for this tip. I tried it (removed the '+' from the path) but it didn't change. I think the problem is that in my makefile only relative paths are used. And it seems that GDB can't convert them to absolute paths.
Jachyra:
Is there an update regarding this issue because I'm experiencing the same thing. As soon as I try to use my own Makefile I can longer debug and breakpoints don't get hit. The actual error message I get is:
--- Code: ---Debugger name and version: GNU gdb 5.2.1
No source file named C:/source/qt2/main.cpp.
--- End code ---
I'm using Qt, so if I don't use the custom makefile, I can debug, but then my resource files don't get included properly. Kind of a catch-22.
Jachyra:
Never mind...I can see that this was a gdb issue and not a CB issue. Upgraded to the most recent version of gdb and now everything works like a charm.
Navigation
[0] Message Index
[#] Next page
Go to full version