Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Hierarchical Register Groups
  • From: Shiva Sharma <SHIVA.SHARMA@xxxxxxxxxxxx>
  • Date: Thu, 17 Jun 2021 18:05:00 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DgPZ13pI7Oa1CeMVoDMNu2Wo4Tu6TnBFHRdfBC8RD1o=; b=g3EgqX1FWiGrrCNx+E9goNbPftwWC55vwxJI7J/V9zr5rdfHWUHd8KVa65ONLMUO/6ng8ECWYNnOpcZkCbIv3eSp2Va7Y7R+BvGJnYLVwTa8JlrIMsbfpy+Ch2juPIKvdvrJ+yNSYqIXSs3ixviwjwSB68tJUW5P2WshEf98xg6cl30HR6KdHaDV9pYxGqILGRMaVgbaoy7WwMdrBBMIQ5lgkFkDx7JwsGYKmaR3gzG/UYBgo9RI2UiotIsJS8M9vPMlGAz5gfqD5lG5VSduNif+G+5a7xWBZWPkzBmoIiKYe1jpWbYQgyj33ERLAFn9k3KYQzx9hiX05+x18dWxjA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=oXJIDL+/Ht1HNLb8hig03uYveFApKxGmNXwrIGQ92UC8yWJMPJLTZ5xA0gClukxFh/IeYZm7UcCs+/QFeSnvJ9f27zj15btbbUVsmoyfruJIH2MdomlaMqA4iqvuSnHr94jOnnwts+dyhxuRKDYzNy4PB8YXqa1bq/bSeLtVH/4GGFlF0XL2fvSuiZmBD3ZNat5mziYeXBxrHwsSGZapGny46LQIwKalcmCDUt5oIADK3qJtyOQKwu6dGouAG5IOfTWZnxiaIjI8301Jbz8E9P3gyWJKKbf0acP4ItH+3FP/m2mk9SkmK5ziz6olGNJMTo1z91OhSQAo3n2z7HUYqw==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: Addjd5p4xITa/7ZuRiuOQQ4bAnQWxwAElDQAAAY4PjA=
  • Thread-topic: Hierarchical Register Groups

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


Hi Shiva,


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 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.







Jonah Graham
Kichwa Coders



On Thu, 17 Jun 2021 at 09:26, Shiva Sharma <SHIVA.SHARMA@xxxxxxxxxxxx> wrote:

Hi Jonah, team,


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 ?


Thanks & Best Regards,

Shiva Sharma..




Back to the top