Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Adding custom register groups in DSF

+1 on getting a bug for those changes.
They are pretty minor and should be not problem

From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Pawel Piech
Sent: Tuesday, April 12, 2011 12:55 AM
To: CDT General developers list.
Subject: Re: [cdt-dev] Adding custom register groups in DSF

Hi Abeer,
I suggest you open a bug for this request and provide a patch.


On 04/11/2011 04:47 AM, Abeer Bagul wrote:

Currently DSF-GDB only defines one register group for all registers in the backend. In order to define custom register groups, we can subclass MIRegisters service and define our own groups. However, there are a few small issues in MIRegisters which makes it difficult to subclass.
The variables fCommandFactory, fRegisterNameCache are not visible to subclasses. Can there be protected accessor methods for the same?
The methods makeRegisterDMCs(...) can be made protected.
In the method writeRegister(...), the write operation proceeds only if group number is 0. Because of that, we have to assign 0 to all custom register groups. This check can be removed to allow custom groups.

Abeer Bagul
Tensilica India
_______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx

Back to the top