| debugger not stopping at breakpoints [message #638590] |
Thu, 11 November 2010 12:22  |
Nathan Hüsken 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 #638768 is a reply to message #638695] |
Fri, 12 November 2010 09:25   |
Marc Khouzam Messages: 219 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
|
|
|
|
Powered by
FUDForum. Page generated in 0.01546 seconds