1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 23:15:24 +02:00

Bug 109206: Last register group is not added if it has only one register.

This commit is contained in:
Mikhail Khodjaiants 2005-09-09 21:34:32 +00:00
parent 5d8d0dacaa
commit 9047a11e82
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-09-09 Mikhail Khodjaiants
Bug 109206: Last register group is not added if it has only one register.
* CRegisterManager.java
2005-09-06 Mikhail Khodjaiants 2005-09-06 Mikhail Khodjaiants
Cleanup: replaced "new Boolean" by the static Boolean objects (Java 1.4). Cleanup: replaced "new Boolean" by the static Boolean objects (Java 1.4).
* CDebugUtils.java * CDebugUtils.java

View file

@ -266,7 +266,7 @@ public class CRegisterManager {
} }
current = d.getGroupName(); current = d.getGroupName();
} }
if ( startIndex < fRegisterDescriptors.length - 1 ) { if ( startIndex < fRegisterDescriptors.length ) {
IRegisterDescriptor[] descriptors = new IRegisterDescriptor[fRegisterDescriptors.length - startIndex]; IRegisterDescriptor[] descriptors = new IRegisterDescriptor[fRegisterDescriptors.length - startIndex];
System.arraycopy( fRegisterDescriptors, startIndex, descriptors, 0, descriptors.length ); System.arraycopy( fRegisterDescriptors, startIndex, descriptors, 0, descriptors.length );
fRegisterGroups.add( new CRegisterGroup( getDebugTarget(), current, descriptors ) ); fRegisterGroups.add( new CRegisterGroup( getDebugTarget(), current, descriptors ) );