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

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