Community
Participate
Working Groups
The EDC implementation of IRegisters.getRegisterGroups() and IRegisters.getRegisters() are successful when they are given a view model context (CompositeDMVMContext) but ironically are unsuccessful when they are given the actual context that they support. I.e., if you pass them a thread or stack frame context, they fail to provide the register/groups for that context. The reason is that they assume they are getting one of these composite view-model contexts and simply iterate over its parents. The right way to handle both scenarios is to use DMContexts.getAncestorOfType() to search for the supported context.
Created attachment 181346 [details] Fix Committed to HEAD. Ken, please review.
Fixed
*** cdt cvs genie on behalf of jcortell *** Bug 328302: EDC Registers service should use DMContexts.getAncestorOfType to find supported type [*] Registers.java 1.15 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/edc/org.eclipse.cdt.debug.edc/src/org/eclipse/cdt/debug/edc/services/Registers.java?root=Tools_Project&r1=1.14&r2=1.15
Thanks, look good.