| |||
| Home > The Cycle Accurate Debug Interface > Defining a CADI interface > CADI::CADIExecGetModes() |
Many processors have more than just a run state and a breakpoint state. This call allows the debugger to determine what these states are.
virtual CADIReturn_t CADI::CADIExecGetModes (uint32_t startModeIndex,
uint32_t desiredNumOfModes, uint32_t * actualNumOfModes,
CADIExecMode_t * execModes) =0
where:
startModeIndexis the index into the target’s buffer of execution modes.
desiredNumOfModesis the requested number of modes This call can be repeated with index + count as the index.
actualNumOfModesis the number of modes returned by the target.
execModesis the space. The caller allocates (and, if applicable,
deallocates) space. The number of elements must be the same as actualNumOfModes. The mode
values are listed in CADI_EXECMODE_t enumeration.