winIDEA SDK
isys::CPUStatus Class Reference

Description

This class contains CPU status.

It is not intended to be instantiated by clients.

Note: Due to hardware restrictions, the stop reason is not always reliable on all architectures (methods isStopReason...()).

See also
IConnectDebug::GetStatus

#include <CExecutionController.h>

Public Member Functions

bool isMustInit ()
 Returns true if the debug system must initialize. More...
 
bool isStopped ()
 Returns true if CPU is stopped. More...
 
bool isRunning ()
 Returns true if CPU is running. More...
 
bool isReset ()
 Returns true if CPU is held in reset. More...
 
bool isHalted ()
 Returns true if CPU is halted by target. More...
 
bool isWaiting ()
 Returns true if CPU is halted by debugger. More...
 
bool isAttach ()
 Returns true if debugger is initialized and waiting for hot attach on the target. More...
 
bool isIdle ()
 Returns true if CPU is idle. More...
 
bool isStopReasonExplicit ()
 Returns true if CPU is in stopped state, and was stopped explicitly by the user. More...
 
bool isStopReasonBP ()
 Returns true if CPU is in stopped state, and was stopped due to execution BP hit. More...
 
bool isStopReasonStep ()
 Returns true if CPU is in stopped state, and was stopped CPU is stopped after a step/over/until/until return command. More...
 
bool isStopReasonHW ()
 Returns true if CPU is in stopped state, and was stopped after a hardware breakpoint hit. More...
 
ADDRESS_64 getExecutionPoint ()
 Returns current execution address. More...
 
uint8_t getExecutionArea ()
 Returns memory area of the current execution address. More...
 
void getMSID (SMSID &rsmsid)
 Returns current execution point MSID. More...
 
std::string toString ()
 Returns human readable contents of the object.
 

Member Function Documentation

◆ getExecutionArea()

uint8_t isys::CPUStatus::getExecutionArea ( )

Returns memory area of the current execution address.

It is specific to each architecture. See MemArea.h as a reference.

Python example: test_get_cpustatus.py

◆ getExecutionPoint()

ADDRESS_64 isys::CPUStatus::getExecutionPoint ( )

Returns current execution address.

Python example: test_get_cpustatus.py

◆ getMSID()

void isys::CPUStatus::getMSID ( SMSID rsmsid)

Returns current execution point MSID.

Valid when in stopped state.

Python example: test_get_cpustatus.py

◆ isAttach()

bool isys::CPUStatus::isAttach ( )

Returns true if debugger is initialized and waiting for hot attach on the target.

Python example: test_get_cpustatus.py

◆ isHalted()

bool isys::CPUStatus::isHalted ( )

Returns true if CPU is halted by target.

Python example: test_get_cpustatus.py

◆ isIdle()

bool isys::CPUStatus::isIdle ( )

Returns true if CPU is idle.

Python example: test_get_cpustatus.py

◆ isMustInit()

bool isys::CPUStatus::isMustInit ( )

Returns true if the debug system must initialize.

Python example: test_get_cpustatus.py

◆ isReset()

bool isys::CPUStatus::isReset ( )

Returns true if CPU is held in reset.

Python example: test_get_cpustatus.py

◆ isRunning()

bool isys::CPUStatus::isRunning ( )

Returns true if CPU is running.

Python example: test_get_cpustatus.py

◆ isStopped()

bool isys::CPUStatus::isStopped ( )

Returns true if CPU is stopped.

Python example: test_get_cpustatus.py

◆ isStopReasonBP()

bool isys::CPUStatus::isStopReasonBP ( )

Returns true if CPU is in stopped state, and was stopped due to execution BP hit.

Python example: test_get_cpustatus.py

◆ isStopReasonExplicit()

bool isys::CPUStatus::isStopReasonExplicit ( )

Returns true if CPU is in stopped state, and was stopped explicitly by the user.

Python example: test_get_cpustatus.py

◆ isStopReasonHW()

bool isys::CPUStatus::isStopReasonHW ( )

Returns true if CPU is in stopped state, and was stopped after a hardware breakpoint hit.

Python example: test_get_cpustatus.py

◆ isStopReasonStep()

bool isys::CPUStatus::isStopReasonStep ( )

Returns true if CPU is in stopped state, and was stopped CPU is stopped after a step/over/until/until return command.

Python example: test_get_cpustatus.py

◆ isWaiting()

bool isys::CPUStatus::isWaiting ( )

Returns true if CPU is halted by debugger.

Python example: test_get_cpustatus.py