mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-16 12:45:41 +02:00
Use ICDIRegisterManager instead of ICDITarget.
This commit is contained in:
parent
0789834dd2
commit
802bd93c70
4 changed files with 13 additions and 19 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2003-02-12 Mikhail Khodjaiants
|
||||||
|
Use ICDIRegisterManager instead of ICDITarget.
|
||||||
|
* ICDITarget.java
|
||||||
|
* CDebugTarget.java
|
||||||
|
* CRegisterGroup.java
|
||||||
|
|
||||||
2003-02-11 Mikhail Khodjaiants
|
2003-02-11 Mikhail Khodjaiants
|
||||||
The 'auto load symbols' action support in ICSharedLibraryManager.
|
The 'auto load symbols' action support in ICSharedLibraryManager.
|
||||||
* ICSharedLibraryManager.java
|
* ICSharedLibraryManager.java
|
||||||
|
|
|
@ -59,21 +59,6 @@ public interface ICDITarget extends ICDIObject {
|
||||||
*/
|
*/
|
||||||
void setCurrentThread(ICDIThread current) throws CDIException;
|
void setCurrentThread(ICDIThread current) throws CDIException;
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the register Object associated with this target.
|
|
||||||
*
|
|
||||||
* @return a collection of register object.
|
|
||||||
* @throws CDIException if this method fails. Reasons include:
|
|
||||||
*/
|
|
||||||
ICDIRegisterObject[] getRegisterObjects() throws CDIException;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the register associated with this target.
|
|
||||||
* @return a collection of register.
|
|
||||||
* @throws CDIException if this method fails.
|
|
||||||
*/
|
|
||||||
ICDIRegister[] getRegisters(ICDIRegisterObject[] regObjects) throws CDIException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evaluates the expression specified by the given string.
|
* Evaluates the expression specified by the given string.
|
||||||
* Returns the evaluation result as a String.
|
* Returns the evaluation result as a String.
|
||||||
|
|
|
@ -2037,7 +2037,7 @@ public class CDebugTarget extends CDebugElement
|
||||||
ICDIRegisterObject[] regObjects = null;
|
ICDIRegisterObject[] regObjects = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
regObjects = getCDITarget().getRegisterObjects();
|
regObjects = getCDISession().getRegisterManager().getRegisterObjects();
|
||||||
}
|
}
|
||||||
catch( CDIException e )
|
catch( CDIException e )
|
||||||
{
|
{
|
||||||
|
|
|
@ -92,16 +92,19 @@ public class CRegisterGroup extends CDebugElement implements IRegisterGroup
|
||||||
|
|
||||||
private ICDIRegister[] getCDIRegisters() throws DebugException
|
private ICDIRegister[] getCDIRegisters() throws DebugException
|
||||||
{
|
{
|
||||||
ICDIRegister[] result = new ICDIRegister[0];
|
ICDIRegister[] results = new ICDIRegister[fRegisterObjects.length];
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
result = ((CDebugTarget)getDebugTarget()).getCDITarget().getRegisters( fRegisterObjects );
|
for ( int i = 0; i < fRegisterObjects.length; ++i )
|
||||||
|
{
|
||||||
|
results[i] = ((CDebugTarget)getDebugTarget()).getCDISession().getRegisterManager().createRegister( fRegisterObjects[i] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch( CDIException e )
|
catch( CDIException e )
|
||||||
{
|
{
|
||||||
targetRequestFailed( e.getMessage(), null );
|
targetRequestFailed( e.getMessage(), null );
|
||||||
}
|
}
|
||||||
return result;
|
return results;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateRegisters() throws DebugException
|
private void updateRegisters() throws DebugException
|
||||||
|
|
Loading…
Add table
Reference in a new issue