[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Disassembly view throws NPE when debugging with CDI
|
At 11:55 AM 6/17/2010, Pawel Piech wrote:
On 06/17/2010 09:17 AM, John Cortell wrote:
Andy,
Something strange is going on. Notice that the code to get the top
stack frame only executes if the new context is a stack frame. So,
how is it that we are being given a stack frame as the new context
but that frame's thread isn't suspended?
When stepping, a thread's frames are shown in DV but technically the
thread is running.
Cheers,
Pawel
Not sure I follow. I run to a breakpoint. The thread is suspended. I
do a step-over. The PC is now at the next line. You're telling me the
thread state is running at that point? Or are you saying that in
between the two suspended state, the thread goes into a running state
but we continue to show its frames? I've never dissected how exactly
state changes occur during stepping (or if I did, it's been a while
and I don't remember the details).
Assuming the latter, maybe this could be reproduced by doing a step
over a sleep call and then clicking on another frame in the call
stack before the sleep returns. I'll need to look into this further...
John