No Checkmark on Breakpoint [message #193622] |
Mon, 12 February 2007 20:41 |
Eclipse User |
|
|
|
Originally posted by: chuck.deadsolidgolf.com
I have a problem using the gdb debugger with Eclipse in C++. When I set
a breakpoint I sometimes get a checkmark and the debugger stops at that
line. On other lines I get no checkmark and its like the breakpoint
isn't there. I looked in the documentation and it says something about
the breakpoint not being "installed" if you don't get a checkmark.
I even get checkmarks and no checkmarks inside the same file.
What am I doing wrong?
How do I get all my breakpoints to install?
|
|
|
Re: No Checkmark on Breakpoint [message #193644 is a reply to message #193622] |
Mon, 12 February 2007 22:12 |
Eclipse User |
|
|
|
Originally posted by: wharley.bea.com
"Chuck" <chuck@deadsolidgolf.com> wrote in message
news:eqqjml$g5q$1@utils.eclipse.org...
>I have a problem using the gdb debugger with Eclipse in C++. When I set a
>breakpoint I sometimes get a checkmark and the debugger stops at that line.
>On other lines I get no checkmark and its like the breakpoint isn't there.
>I looked in the documentation and it says something about the breakpoint
>not being "installed" if you don't get a checkmark.
>
> I even get checkmarks and no checkmarks inside the same file.
>
> What am I doing wrong?
>
> How do I get all my breakpoints to install?
You probably need to ask this question on eclipse.tools.cdt.
But just a guess: make sure that there is actually code on the line you're
expecting. For instance, if you have compiler optimizations turned on, the
compiler may eliminate or move some blocks of code. Trying to put a
breakpoint there won't work.
int i = 3;
if (i < 2) {
++i; // can't put breakpoint here
}
You can see in code like the above that if the compiler is smart enough it
will entirely eliminate the comparison and the increment. That's a trivial
example, but depending on the compiler the optimizations can get pretty
tricky. Many folks choose to leave optimizations turned completely off when
building with debug symbols.
|
|
|
Re: No Checkmark on Breakpoint [message #193684 is a reply to message #193644] |
Tue, 13 February 2007 08:19 |
Eclipse User |
|
|
|
Originally posted by: yura.zharkovsky.telelogic.com
Hi Chuck,
I have the same problem with my application being debbuged in eclipse cdt.
When I set breakpoint (through code) it always appears in breakpoint view.
However, I saw that those breakpoints which are placed in my external
libraries sources thay are not actually placed in GDB Debugger.
(Suspend process, select gdb debugger in threads view and in console write
"info breakpoints")
In case I place breakpoint in my source files it is placed correctly in
GDB debugger.
Regrds,
Yura.
|
|
|
Powered by
FUDForum. Page generated in 0.07349 seconds