Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-debug-dev] Execution lost in pthread while debugging withCygwin GDB

Mikhail ,

What I mean is that I can step through the code until it reaches here -

pthread_mutexattr_t attr;

=> pthread_mutexattr_init(&attr);

At the line where the pthread_mutexattr_init routine is called, if I do a Step Over or Step Into or Run (with a breakpoint on the next line) the debugger doesn't return and the execution just seems to get lost. The only thing I can do is suspend or terminate. The Debug window shows 2 threads - the status of this one is 'Stepping' and the status of the other is 'Running'.

The error log does not generate any message when this happens.

Thanks,
Sudhan


From: "Mikhail Khodjaiants" <mikhailk@xxxxxxx>
Reply-To: CDT Debug developers list <cdt-debug-dev@xxxxxxxxxxx>
To: "CDT Debug developers list" <cdt-debug-dev@xxxxxxxxxxx>
Subject: Re: [cdt-debug-dev] Execution lost in pthread while debugging withCygwin GDB Date: Wed, 5 Apr 2006 17:27:45 -0400

What do you mean by "control does not return to the debugger"? Is the session in the running state? Check the error log.

----- Original Message ----- From: "Sudhan Kayarkar" <sudhank@xxxxxxxxxxx>
To: <cdt-debug-dev@xxxxxxxxxxx>
Sent: Wednesday, April 05, 2006 5:06 PM
Subject: [cdt-debug-dev] Execution lost in pthread while debugging with Cygwin GDB


I have a multi threaded project executable built using g++ that runs
fine
from command line or Windows double click.
However, when I try to debug using Cygwin GDB the execution gets lost
when a
call to pthread_mutexattr_init is made i.e. control does not return to
the
debugger.

The point at which this happens is NOT the first time that this pthread
function is invoked. There are earlier invocations of this function that

execute fine.

Any clues about what might be happening or how this issue can be root
caused
?
Thanks,
Sudhan


_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev

_______________________________________________
cdt-debug-dev mailing list
cdt-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-debug-dev




Back to the top