Skip to main content

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

Hi

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

Thanks
Abeer Bagul
Tensilica India

Back to the top