mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
[205132] Third step in refactoring IDMContext:
- Marked IDMService.getModelData() as deprecated. - Created public get*Data() method in debug services.
This commit is contained in:
parent
ec4694c8b8
commit
75d779d6b9
6 changed files with 59 additions and 0 deletions
|
@ -137,6 +137,16 @@ public interface IExpressions extends IDMService, IFormattedValues {
|
||||||
*/
|
*/
|
||||||
interface IExpressionChangedDMEvent extends IDMEvent<IExpressionDMContext> {}
|
interface IExpressionChangedDMEvent extends IDMEvent<IExpressionDMContext> {}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the expression DM data object for the given expression context(<tt>dmc</tt>).
|
||||||
|
*
|
||||||
|
* @param dmc
|
||||||
|
* The ExpressionDMC for the expression to be evaluated.
|
||||||
|
* @param rm
|
||||||
|
* The data request monitor that will contain the requested data
|
||||||
|
*/
|
||||||
|
void getExpressionData(IExpressionDMContext dmc, DataRequestMonitor<IExpressionDMData> rm);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the data model context object for the specified expression in the context
|
* Returns the data model context object for the specified expression in the context
|
||||||
* specified by <b>ctx</b>.
|
* specified by <b>ctx</b>.
|
||||||
|
|
|
@ -53,6 +53,14 @@ public interface IFormattedValues extends IDMService {
|
||||||
*/
|
*/
|
||||||
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId);
|
public FormattedValueDMContext getFormattedValueContext(IFormattedDataDMContext dmc, String formatId);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves the DM data associated with given formatted value context.
|
||||||
|
* @param dmc Context to retrieve the value for.
|
||||||
|
* @param rm Completion monitor returns the formatted value.
|
||||||
|
*/
|
||||||
|
public void getFormattedExpressionValue(FormattedValueDMContext dmc, DataRequestMonitor<FormattedValueDMData> rm);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* DMC that represents a value with specific format. The format ID can be
|
* DMC that represents a value with specific format. The format ID can be
|
||||||
* persisted and used for comparison.
|
* persisted and used for comparison.
|
||||||
|
|
|
@ -104,6 +104,21 @@ public interface IRegisters extends IFormattedValues {
|
||||||
String getLongName();
|
String getLongName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves register group data for given context.
|
||||||
|
* @param regGroupDmc Context to retrieve data for.
|
||||||
|
* @param rm Request completion monitor.
|
||||||
|
*/
|
||||||
|
void getRegisterGroupData(IRegisterGroupDMContext regGroupDmc, DataRequestMonitor<IRegisterGroupDMData> rm);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves register data for given context.
|
||||||
|
* @param regGroupDmc Context to retrieve data for.
|
||||||
|
* @param rm Request completion monitor.
|
||||||
|
*/
|
||||||
|
void getRegisterData(IRegisterDMContext regDmc , DataRequestMonitor<IRegisterDMData> rm);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the list of register groups.
|
* Retrieves the list of register groups.
|
||||||
* @param ctx Context for the returned data.
|
* @param ctx Context for the returned data.
|
||||||
|
|
|
@ -86,6 +86,13 @@ public interface IRunControl extends IDMService
|
||||||
StateChangeReason getStateChangeReason();
|
StateChangeReason getStateChangeReason();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves execution data for given context.
|
||||||
|
* @param dmc Context to retrieve data for.
|
||||||
|
* @param rm Request completion monitor.
|
||||||
|
*/
|
||||||
|
public void getExecutionData(IExecutionDMContext dmc, DataRequestMonitor<IExecutionDMData> rm);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns execution contexts belonging to the given container context.
|
* Returns execution contexts belonging to the given container context.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -56,6 +56,20 @@ public interface IStack extends IDMService {
|
||||||
String getValue();
|
String getValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves stack frame data for given context.
|
||||||
|
* @param frameDmc Context to retrieve data for.
|
||||||
|
* @param rm Request completion monitor.
|
||||||
|
*/
|
||||||
|
public void getFrameData(final IFrameDMContext frameDmc, DataRequestMonitor<IFrameDMData> rm);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retrieves stack frame variable data for given context.
|
||||||
|
* @param variableDmc Context to retrieve data for.
|
||||||
|
* @param rm Request completion monitor.
|
||||||
|
*/
|
||||||
|
public void getVariableData(IVariableDMContext variableDmc, DataRequestMonitor<IVariableDMData> rm);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the stack frames can be retrieved for given thread.
|
* Returns whether the stack frames can be retrieved for given thread.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -29,6 +29,11 @@ public interface IDMService extends IDsfService {
|
||||||
* @param <V> The Data Model Data type that is to be retrieved.
|
* @param <V> The Data Model Data type that is to be retrieved.
|
||||||
* @param dmc Data Model Context for the data model data object to be retrieved.
|
* @param dmc Data Model Context for the data model data object to be retrieved.
|
||||||
* @param rm Request completion monitor to be filled in with the Data Model Data.
|
* @param rm Request completion monitor to be filled in with the Data Model Data.
|
||||||
|
*
|
||||||
|
* @deprecated
|
||||||
|
* This method is not deprecated as there is no compile-time linking
|
||||||
|
* between IDMContext and IDMData objects (see bug 205132)
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
void getModelData(IDMContext dmc, DataRequestMonitor<?> rm);
|
void getModelData(IDMContext dmc, DataRequestMonitor<?> rm);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue