Hi Jonah,
Ok. As per my experiments, the layout I create in the RegisterVMProvider.configureLayout() is same for any register groups user adds and for the main register group as
well. I only wanted to have a different layout for the main register group.
So the existing mechanism suits best for my purpose where all register groups are child to root node itself.
Thanks for your help!
Thanks & Best Regards,
Shiva Sharma..
From: Jonah Graham <jonah@xxxxxxxxxxxxxxxx>
Sent: 17 June 2021 20:33
To: Shiva Sharma <shsharma@xxxxxxxxxxxx>
Cc: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: Hierarchical Register Groups
I don't think this is possible without modifying/extending RegisterVMProvider. As you have discovered register groups (most recently extended in 8.6 to allow users to manipulate the groups
https://wiki.eclipse.org/CDT/User/NewIn86#Register_grouping) you are on your way to understanding the code. The vm provider (org.eclipse.cdt.dsf.debug.ui.viewmodel.register.RegisterVMProvider.configureLayout()) configures its layout, and as you can see
in that code register groups can only be children of the root node.
If I want to create register groups in hierarchical manner during launch of debug session than how can I make use of the field ‘parent_id’ from group’s memento ?
I have extended RegisterGroupPersistance class but the groups seems to be created only in serial manner, so do not understand what is use of field ‘parent_id’ which is container_id internally. Is there a restriction
?
I want to create structure like (where ‘R’ could have ‘Core Registers’ group as container and could be set as ‘parent_id’ ?):
Please guide if this is easily possible ?