Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-debug-dev] RE: Automatically selecting the top stackframe on a thread suspend

Ken,

You need to have a delta that has the IModelDelta.SELECT flag on it for a
selection to take place.

An example of this is in ThreadEventHandler#fireDeltaUpdatingTopFrame(...).
If you set a breakpoint in there and perhaps one in
TreeModelContentProvider#handleSelect(..) you can get an idea of the
round-trip for the select delta as we use it.

Michael Rennie
Debug Team


|------------>
| From:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |"Ken Wallis" <kwallis@xxxxxxx>                                                                                                                    |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| To:        |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |<platform-debug-dev@xxxxxxxxxxx>                                                                                                                  |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Date:      |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |12/17/2007 08:53 AM                                                                                                                               |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
|------------>
| Subject:   |
|------------>
  >--------------------------------------------------------------------------------------------------------------------------------------------------|
  |[platform-debug-dev] RE: Automatically selecting the top stackframe     on a thread suspend                                                       |
  >--------------------------------------------------------------------------------------------------------------------------------------------------|





Hello, apologies for sending another email, but I was wondering if there
might be anyone out there that might have some pointers for me on this
issue.  I track execution through and see that in
DebugTargetEventHandler.handleSuspend(DebugEvent event), it fires a
delta with (IModelDelta.CONTENT | IModelDelta.STATE).  However, as far
as I can tell stepping through code in TreeModelContentProvider and
LaunchView, this doesn't result in setting a new selection at all, let
alone the top stack frame.

Any help would be greatly appreciated.


Ken


-----Original Message-----
From: Ken Wallis
Sent: Friday, December 07, 2007 6:35 PM
To: 'platform-debug-dev@xxxxxxxxxxx'
Subject: Automatically selecting the top stackframe on a thread suspend

A while back, in April 2007, there was a thread like this between Darin
Wright and Subhash Daga.  When a breakpoint is hit, the Debug view does
not automatically select the top stackframe.  I am encountering the same
problem.  When the breakpoint is encountered, I call:

fireSuspendEvent(DebugEvent.CLIENT_REQUEST);

isSuspended() will return true, and a call to retrieve the stackframes
will return a list of stackframes, but the UI does not automatically
select the top most stackframe.

Might anyone have any ideas where I can look?  Possibly where I could
put some breakpoints to try and diagnose the problem?

Thanks,
Ken

---------------------------------------------------------------------
This transmission (including any attachments) may contain confidential
information, privileged material (including material protected by the
solicitor-client or other applicable privileges), or constitute non-public
information. Any use of this information by anyone other than the intended
recipient is prohibited. If you have received this transmission in error,
please immediately reply to the sender and delete this information from
your system. Use, dissemination, distribution, or reproduction of this
transmission by unintended recipients is not authorized and may be
unlawful.
_______________________________________________
platform-debug-dev mailing list
platform-debug-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-debug-dev




Back to the top