DebugServer2
Loading...
Searching...
No Matches
ds2::Target::ThreadBase Class Referenceabstract
Inheritance diagram for ds2::Target::ThreadBase:
Collaboration diagram for ds2::Target::ThreadBase:

Public Types

enum  State {
  kInvalid , kRunning , kStepped , kStopped ,
  kTerminated
}
 

Public Member Functions

Process * process () const
 
ThreadId tid () const
 
StopInfo const & stopInfo () const
 
virtual ErrorCode terminate ()=0
 
virtual ErrorCode suspend ()=0
 
State state () const
 
virtual ErrorCode step (int signal=0, Address const &address=Address())=0
 
virtual ErrorCode resume (int signal=0, Address const &address=Address())=0
 
virtual ErrorCode beforeResume ()
 
virtual ErrorCode readCPUState (Architecture::CPUState &state)=0
 
virtual ErrorCode writeCPUState (Architecture::CPUState const &state)=0
 
virtual ErrorCode modifyRegisters (std::function< void(Architecture::CPUState &state)> action) final
 
uint32_t core () const
 

Protected Member Functions

 ThreadBase (Process *process, ThreadId tid)
 
virtual void updateState ()=0
 

Protected Attributes

Process * _process
 
ThreadId _tid
 
StopInfo _stopInfo
 
State _state
 

Friends

class ProcessBase
 

The documentation for this class was generated from the following files: