Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » debugger not stopping at breakpoints
debugger not stopping at breakpoints [message #638590] Thu, 11 November 2010 17:22 Go to next message
Nathan Hüsken is currently offline Nathan HüskenFriend
Messages: 27
Registered: November 2010
Junior Member
Hi,

I have a cmake project, which I imported as a Makefile project. I compiled the project in debug mode. I created a debugger launch for an executable located in the project.
Now, I am trying to set a breakpoint and start the debugger.

In the debug view, when I hower over the breakpoint (next to the editor) I get:

Multiple markers at this line
-Line breakpoints: <the file>:<line number>
-Breakpoint attribute problem: installation failed

Now, the debugger stops at the first command in the main. Fine. I press resume.

The debugger does not stop at the breakpoint. Execution definitely passes the breakpoint because at the second time, the line throws an assert.

What could be wrong? What can I do?

This is the versions of the used software:

gdb version: 7.2-ubuntu

Eclipse Version: Helios Service Release 1
Build id: 20100917-0705

Eclipse CDT P2 Customizations for SDK installation
Version: 1.0.0.201009141542
Build id: 201009141542

Eclipse C/C++ Development Tools
Version: 7.0.1.201009141542
Build id: 201009141542

GDB Common
Version: 7.0.0.201009141542
Build id: 201009141542
Re: debugger not stopping at breakpoints [message #638598 is a reply to message #638590] Thu, 11 November 2010 17:53 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
The Breakpoint Installation message seems to indicate that GDB could not properly set the breakpoint. You can look for error messages given by GDB in the 'gdb traces' console.

To open that console, look for the little TV icon in the console view and click on its arrow, then select 'gdb traces'.

You can then try to set a breakpoint and see if GDB gives an error.

Marc
Re: debugger not stopping at breakpoints [message #638695 is a reply to message #638598] Fri, 12 November 2010 09:04 Go to previous messageGo to next message
Nathan Hüsken is currently offline Nathan HüskenFriend
Messages: 27
Registered: November 2010
Junior Member
It does give an error:

364,140 14-break-insert <absolute-path-to-the-file>/mysingleton.h:166
364,219 14^error,msg="No source file named <absolute-path-to-the-file>/mysingle\
ton.h."


I am unsure why the backslash is inserted, could that be the problem? Otherwise, the file where it tries to insert the breakpoint exists (tested with ls).

When I start gdb in the console, and set the breakpoint with "break", I get:
Make breakpoint pending on future shared library load? (y or [n])


But when I say "y", everything works. Could that be connected to the problem?
Thanks!
Re: debugger not stopping at breakpoints [message #638768 is a reply to message #638695] Fri, 12 November 2010 14:25 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
No Real Name wrote on Fri, 12 November 2010 04:04
It does give an error:

364,140 14-break-insert <absolute-path-to-the-file>/mysingleton.h:166
364,219 14^error,msg="No source file named <absolute-path-to-the-file>/mysingle\
ton.h."


I am unsure why the backslash is inserted, could that be the problem? Otherwise, the file where it tries to insert the breakpoint exists (tested with ls).

When I start gdb in the console, and set the breakpoint with "break", I get:
Make breakpoint pending on future shared library load? (y or [n])


But when I say "y", everything works. Could that be connected to the problem?
Thanks!


The backslash is just to break the line in the output. That is ok.

The problem is that when you set the breakpoint (when eclipse does), the file in question has not been loaded. Seems to be a library. Handling this properly is something that was missed for CDT 7.0 but has been fixed for the upcoming release. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=248595

Until then, for this case, you will have to use the old debugger integration, which has this feature. In your launch window, at the bottom you will see a hyperlink saying "Using GDB (DSF) Create process launcher - Select other..."
Click on that, and choose "Standard create process launcher", then make sure all attributes are correct and launch as before.

Marc

Re: debugger not stopping at breakpoints [message #638772 is a reply to message #638768] Fri, 12 November 2010 14:35 Go to previous messageGo to next message
Nathan Hüsken is currently offline Nathan HüskenFriend
Messages: 27
Registered: November 2010
Junior Member
That works, thanks!
Re: debugger not stopping at breakpoints [message #1826952 is a reply to message #638772] Tue, 05 May 2020 09:53 Go to previous message
Dave Hitchman is currently offline Dave HitchmanFriend
Messages: 9
Registered: August 2018
Junior Member
Its 2020 and this is still an issue.
No wonder I am giving up on eclipse, an IDE which allows you to set breakpoints and then doesnt stop is even less use than a chocolate fireguard.
Previous Topic:How to link a library to library - follow up on another post.
Next Topic:Amazon Freertos with Eclipse
Goto Forum:
  


Current Time: Fri Apr 19 22:27:01 GMT 2024

Powered by FUDForum. Page generated in 0.02946 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top