Code::Blocks Forums

User forums => Help => Topic started by: Revvy on June 16, 2006, 02:56:02 am

Title: Debug breakpoints
Post by: Revvy on June 16, 2006, 02:56:02 am
Up until pretty recently I've been able to use debug breakpoints without problems in the nightly builds.  However, recently any breakpoint I place is simply ignored by gdb, and I see the message "No source file named C:/dev/poke/pokepoke/gui.cpp." in the debug log.  Obviously this file exists, because I'm editing it when this message appears, but it happens with any source file that I try to debug (in the project I'm working on, at least.  I haven't tried others yet).
Title: Re: Debug breakpoints
Post by: MortenMacFly on June 16, 2006, 11:26:13 am
Hmmm... it works for me. Are you sure you haven't fogotten to add the debugger switches for compiling? Did you try a full re-compile?
With regards, Morten.
Title: Re: Debug breakpoints
Post by: ASJ on June 16, 2006, 01:49:04 pm
Besides what MortenMacFly mentons above,you might have to check out the gdb version (6.3?) and the precompiled header settings of your project. I came across a similar problems before and solved it by changing 1 of those two things (not sure which of the two actually made the difference...)) :D

Title: Re: Debug breakpoints
Post by: Revvy on June 16, 2006, 11:40:09 pm
Debugging switches are on, a full rebuild didn't make a difference and I'm using gdb 5.2.1.  I can't even find how to do anything with PCH, do I figure that's not affecting me.
Title: Re: Debug breakpoints
Post by: Michael on June 16, 2006, 11:43:29 pm
I'm using gdb 5.2.1.

Hello,

That's the problem. Download from MinGW GDB 6.3.

Best wishes,
Michael
Title: Re: Debug breakpoints
Post by: Revvy on June 17, 2006, 03:16:55 pm
I'm using gdb 5.2.1.

Hello,

That's the problem. Download from MinGW GDB 6.3.

Best wishes,
Michael

You're right, this did fix it.  Thanks a lot!  Now, could you explain the reason why? =P
Title: Re: Debug breakpoints
Post by: Michael on June 18, 2006, 02:52:15 pm
Now, could you explain the reason why? =P

Hello,

May be this post (http://forums.codeblocks.org/index.php?topic=1711.msg12661#msg12661) could give you some hints.

Best wishes,
Michael