News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Bad breakpoints with 10.05 and GDB

Started by ncassetta, June 13, 2010, 05:37:13 PM

Previous topic - Next topic

ncassetta

I use MinGW and GDB 5.2.1 on WinXP
I updated to 10.05 but now get a strange behaviour when debugging: if I set a breakpoint in a c++ function (in my project files, of course...), CodeBlocks stops not at the breakpoint, but at the line calling the function (the only right breakpoints are those in main()). Similarly, if I am stepping in a line calling a function and push 'Trace into' button, I see the cursor skipping to the function, but immediately "bouncing" again to the calling line. These continuos skips are effectively shown in the GDB log.
I checked all debugger option (in Project and Settings), but these seems same as in older version and all are unchanged. Tried to install both No-MinGW and  MinGW binaries, but the result is the same.
Returning to 8.02 makes all OK.
What's wrong?
Thanks N.Cassetta

stahta01

IIRC, the gdb recommend is 6.x instead of 5.x now.
Note, I don't use the debugger so I only now what i have read.

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]

oBFusCATed

Yes, ncassetta test gdb 6.8.0 or 7.0.1/7.1.0...
5.3 is extremely old
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

ncassetta

Yes, thanks! Solved with GDB 7.1
N.Cassetta