mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 02:06:01 +02:00
2004-11-16 Alain Magloire
Optimize things by providing a new method ICDIRegisterGroup.hasRegisters(); * cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIRegisterGroup.java * src/org/eclipse/cdt/debug/internal/core/model/CRegisterGroup.java
This commit is contained in:
parent
e5f9c0c311
commit
334882d258
3 changed files with 21 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2004-11-16 Alain Magloire
|
||||||
|
Optimize things by providing a new method
|
||||||
|
ICDIRegisterGroup.hasRegisters();
|
||||||
|
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDIRegisterGroup.java
|
||||||
|
* src/org/eclipse/cdt/debug/internal/core/model/CRegisterGroup.java
|
||||||
|
|
||||||
2004-11-15 Mikhail Khodjaiants
|
2004-11-15 Mikhail Khodjaiants
|
||||||
Fix for bug 78604: Disassembly causes Java exception when disassembling beyond fn(?).
|
Fix for bug 78604: Disassembly causes Java exception when disassembling beyond fn(?).
|
||||||
Added the "getAddressFactory" method to the "IDisassembly" interface.
|
Added the "getAddressFactory" method to the "IDisassembly" interface.
|
||||||
|
|
|
@ -35,4 +35,13 @@ public interface ICDIRegisterGroup extends ICDIObject {
|
||||||
* @throws CDIException if this method fails. Reasons include:
|
* @throws CDIException if this method fails. Reasons include:
|
||||||
*/
|
*/
|
||||||
ICDIRegisterDescriptor[] getRegisterDescriptors() throws CDIException;
|
ICDIRegisterDescriptor[] getRegisterDescriptors() throws CDIException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether this register group currently contains any registers.
|
||||||
|
*
|
||||||
|
* @return whether this register group currently contains any registers
|
||||||
|
* @exception CDIException if this method fails. Reasons include:
|
||||||
|
*/
|
||||||
|
public boolean hasRegisters() throws CDIException;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,12 @@ public class CRegisterGroup extends CDebugElement implements IRegisterGroup, IEn
|
||||||
* @see org.eclipse.debug.core.model.IRegisterGroup#hasRegisters()
|
* @see org.eclipse.debug.core.model.IRegisterGroup#hasRegisters()
|
||||||
*/
|
*/
|
||||||
public boolean hasRegisters() throws DebugException {
|
public boolean hasRegisters() throws DebugException {
|
||||||
return getRegisters().length > 0;
|
try {
|
||||||
|
return fCDIRegisterGroup.hasRegisters();
|
||||||
|
} catch( CDIException e ) {
|
||||||
|
requestFailed( e.getMessage(), null );
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void dispose() {
|
public void dispose() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue