News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Debugging inline functions (MinGW 4.2.1, GDB 6.6, Windows XP)

Started by The-Kenny, November 10, 2007, 04:22:55 PM

Previous topic - Next topic

The-Kenny

Hello,

I'm trying to debug with Code::Blocks, and it works well.
There is only one problem: I can't debug functions which are defined and declined in a header.

Every time I try to set a breakpoint I get the message:
QuoteBreakpoint 2 ("J:/Development/Projekte/OpenGL/src/classes.h:210) pending.
No source file named J:/Development/Projekte/OpenGL/src/classes.h.

And the debugger does simply nothing.
Breakpoints in .cpp-files are working without problems.

Am I simply to stupid for debugging, or is this a normal behaviour? When yes, is there a workaround for this?

Edit:

I tried -g, -gdb, -gstabs and -gstabs+, nothing changed.

The-Kenny

Hm... it won't work if I send the same command Code::Blocks sends, but if I add another '/' before the filename it works...

Works not:
Quotebreak "J:/Development/Projekte/OpenGL/src/math.h:143"

Works:
Quotebreak "J:/Development/Projekte/OpenGL/src//math.h:143"

The problem only affects header-files.

Is there a chance for a patch?

stahta01

Problem may be in GDB.

See here for confirmation, I am guessing that attach is used by break. This is a wild guess on my part.
http://www.nabble.com/gdb-6.7-t4715626.html

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]