Jump to: navigation, search

CDT/MultiCoreDebugWorkingGroup/MultiLevelHierarchy

< CDT‎ | MultiCoreDebugWorkingGroup
Revision as of 13:53, 23 November 2010 by Marc.khouzam.ericsson.com (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Multi Level Hierarchy in the Debug View using DSF (Dobrin)

Currently Platform Flexible enables the debug view to show any hierarchy of objects.

DSF currently has defined two data model interfaces IExecutionDMContext and IContainerDMContext and two view models classes: AbstractThreadVMNode and AbstractContainerVMNode.
I would like to explore these interfaces and the classes using them to deliver the following features:

  • Containers can be recursive - each container can have its own stack and/or other child containers.
  • The user should be able to filter and show container nodes or container types.
  • The user should be able to group and ungroup container nodes or container types.
  • Filtering and grouping nodes can be both with the involvement of the back end debugger or not.
  • The user should be able to change the way the contaniers are presented in the debug view without changing the container's hierarchy.
  • The containers can have types so the user can filter or group containers by container type.

I believe these features are driven from the following use cases:

Use cases:

  • UC1:

The debug view shows hierarchy "core – process - thread" The user can switch the hierarchy to show "process – thread – core"

  • UC2:

The debug view shows hierarchy "core – thread – process" The user can hide and show all "core" nodes. All "thread" nodes will appear as children of the launch node. The user can hide specific core from the hierarchy. Its "thread" nodes can either hide, or they can become children of the launch node.

  • UC3:

The user of a multicore system can hide and show the boards the cores / devices / connections the core belongs to.

  • UC4:

The user can create custom groups that he can use for synchronized stepping / running / halting.

  • UC5:

The user can hide in the debug view all threads and processes with names that matches a specific pattern.


DSF seems to have a limitation where it only accepts a single level of IContainerDMContext.

Currently I know of two Bugzilla entries related to the idea:

Bug 240208 A single VMNode should represent all execution levels
Bug 306868 DefaultVMModelProxyStrategy does not generate proper delta with recursive VM nodes

I think we can reuse the first one to further discussion on the topic. To discuss requirements and use cases we can use the use case page.