Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-dev] Recursive DSF view model nodes in the debug view

Thanks Pawel and Marc.

 

I looked briefly at the bug and I like the idea of merging the thread and container VM nodes.

I’ll be looking in that area in a week and I hope I’ll have some input then.

 

Regards

Dobrin

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Marc Khouzam
Sent: March 5, 2010 10:04 AM
To: CDT General developers list.
Subject: RE: [cdt-dev] Recursive DSF view model nodes in the debug view

 

I believe this is related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=240208

Dobrin, any input you can contribute to that bug would be valuable.

 

Thanks

 


From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Pawel Piech
Sent: March-04-10 7:26 PM
To: CDT General developers list.
Subject: Re: [cdt-dev] Recursive DSF view model nodes in the debug view

Hi Bobrin,

Alexiev, Dobrin wrote:

Hello,

Has anyone tried recursive view model hierarchy in the debug view using DSF?

Yes, you can even look at org.eclipse.cdt.examples.dsf.filebrowser for an example ;-)
It's a simplistic example though, so you may uncover new bugs in this area.

I’d trying something like

launch

            container

                        thread

                                    stack frame(s)

            container

            container

                        container

                                    container

                                                thread

                                                            stack frame(s)

                        container

                                    thread

                                                stack frame(s)

                       

It does show up properly in the debug view.

But when I fire suspended event on the thread for some reason my StackFrameVMNode.buildDelta doesn’t get called even though its getDeltaFlags returns properly CONTENT + EXAPND + SELECT for ISuspendedDMEvent.

I’ll keep digging into DefaultVMModelProxyStrategy code tomorrow.

I just saw a comment “Avoid descending into recursive node hierarchy's when calculating the delta.” and decided to make sure I am not trying a use case that is not supported by design.

What this means is that if you have a recursive hierarchy (i.e. a node that has itself as a child), then this node is responsible for building a delta with all the levels in this hierarchy.  For example, in the hierarchy you have above when the container node is called, it needs to build a delta for all the nested containers before it completes so that the thread vm node can build on top of that.



Hope this helps,
Pawel

In other words, when the ContainerVMNode.buildDelta() is called it needs to

Thanks in advance!

Dobrin




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

 


Back to the top