Re: [PATCH 4/5] gdb/python: New method to access list of register groups

Christian Biesinger
2020-06-17T18:41:24Z

On Wed, Jun 17, 2020 at 12:38 PM Andrew Burgess
<andrew.burgess@embecosm.com> wrote:
>
> Add a new method gdb.Architecture.register_groups which returns a new
> object of type gdb.RegisterGroupsIterator. This new iterator then
> returns objects of type gdb.RegisterGroup.
>
> Each gdb.RegisterGroup object just wraps a single reggroup pointer,
> and (currently) has just one read-only property 'name' that is a
> string, the name of the register group.
>
> As with the previous commit (adding gdb.RegisterDescriptor) I made
> gdb.RegisterGroup an object rather than just a string in case we want
> to add additional properties in the future.

So this adds just the ability to get the names of the groups, without
a way to associate specific registers with the group? Out of
curiosity, what's the use case for that?

Christian