Author Topic: Bad breakpoints with 10.05 and GDB  (Read 4552 times)

Offline ncassetta

  • Single posting newcomer
  • *
  • Posts: 8
Bad breakpoints with 10.05 and GDB
« on: June 13, 2010, 05:37:13 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: Bad breakpoints with 10.05 and GDB
« Reply #1 on: June 13, 2010, 06:18:14 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Bad breakpoints with 10.05 and GDB
« Reply #2 on: June 13, 2010, 07:52:59 pm »
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!]

Offline ncassetta

  • Single posting newcomer
  • *
  • Posts: 8
Re: Bad breakpoints with 10.05 and GDB
« Reply #3 on: June 14, 2010, 06:26:53 pm »
Yes, thanks! Solved with GDB 7.1
N.Cassetta