I need some help with using Eclipse breakpoints. I am working on multithread c++ application using Eclipse Luna Service Release 2 RC3 (4.4.2), with GDB 7.1, on ubuntu 10.04 32-bits. I manage to put and stop on breakpoints but on continuing I don't get the debugger stop on the same place though it periodically execute that line again and again (without stopping on breakpoint), adding new breakpoint line below or above, makes it stop, but on clicking resume, it does not stop again at these lines. I tried to work with non stop mode and without, but still get same unexpected result. I even tried creating new project hello world in which I added the while loop and sleep, and set a breakpoint as sleep. It stops there, but removing breakpoint, resuming and adding breakpoint again, it does not stop any more....
int main() {
while(1)
{
sleep(1);
}
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
I never seen such unepected behaviour. Please help...
Thanks, Ran