News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Debug breakpoints

Started by Revvy, June 16, 2006, 02:56:02 AM

Previous topic - Next topic

Revvy

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).
Cheers,
Revvy

MortenMacFly

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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

ASJ

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


Revvy

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.
Cheers,
Revvy

Michael

Quote from: Revvy on June 16, 2006, 11:40:09 PM
I'm using gdb 5.2.1.

Hello,

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

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

Revvy

Quote from: Michael on June 16, 2006, 11:43:29 PM
Quote from: Revvy on June 16, 2006, 11:40:09 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
Cheers,
Revvy

Michael

Quote from: Revvy on June 17, 2006, 03:16:55 PM
Now, could you explain the reason why? =P

Hello,

May be this post could give you some hints.

Best wishes,
Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]