Implements debugging functionality without the EEM API (not supporting data breakpoints and software breakpoints). More...

#include <MSP430Target.h>

Inheritance diagram for MSP430Proxy::MSP430GDBTarget:
MSP430Proxy::MSP430EEMTarget

Public Member Functions

 MSP430GDBTarget ()
 
 ~MSP430GDBTarget ()
 
virtual bool Initialize (const GlobalSettings &settings)
 Starts debugging session.
 
virtual GDBStatus GetLastStopRecord (TargetStopRecord *pRec)
 
virtual GDBStatus ResumeAndWait (int threadID)
 
virtual GDBStatus Step (int threadID)
 
virtual GDBStatus SendBreakInRequestAsync ()
 
virtual const
PlatformRegisterList * 
GetRegisterList ()
 
virtual GDBStatus ReadFrameRelatedRegisters (int threadID, RegisterSetContainer &registers)
 
virtual GDBStatus ReadTargetRegisters (int threadID, RegisterSetContainer &registers)
 
virtual GDBStatus WriteTargetRegisters (int threadID, const RegisterSetContainer &registers)
 
virtual GDBStatus ReadTargetMemory (ULONGLONG Address, void *pBuffer, size_t *pSizeInBytes)
 
virtual GDBStatus WriteTargetMemory (ULONGLONG Address, const void *pBuffer, size_t sizeInBytes)
 
virtual GDBStatus GetDynamicLibraryList (std::vector< DynamicLibraryRecord > &libraries)
 
virtual GDBStatus GetThreadList (std::vector< ThreadRecord > &threads)
 
virtual GDBStatus SetThreadModeForNextCont (int threadID, DebugThreadMode mode, OUT bool *pNeedRestoreCall, IN OUT INT_PTR *pRestoreCookie)
 
virtual GDBStatus Terminate ()
 
virtual GDBStatus CreateBreakpoint (BreakpointType type, ULONGLONG Address, unsigned kind, OUT INT_PTR *pCookie)
 
virtual GDBStatus RemoveBreakpoint (BreakpointType type, ULONGLONG Address, INT_PTR Cookie)
 
virtual GDBStatus ExecuteRemoteCommand (const std::string &command, std::string &output)
 
virtual IFLASHProgrammer * GetFLASHProgrammer ()
 
virtual GDBStatus GetEmbeddedMemoryRegions (std::vector< EmbeddedMemoryRegion > &regions)
 
virtual GDBStatus EraseFLASH (ULONGLONG addr, size_t length)
 
virtual GDBStatus WriteFLASH (ULONGLONG addr, const void *pBuffer, size_t length)
 
virtual GDBStatus CommitFLASHWrite ()
 

Protected Member Functions

virtual bool WaitForJTAGEvent ()
 
void ReportLastMSP430Error (const char *pHint)
 
virtual bool DoResumeTarget (RUN_MODES_t mode)
 

Protected Attributes

DEVICE_T m_DeviceInfo
 
bool m_BreakInPending
 
bool m_bFLASHCommandsUsed
 

Detailed Description

Implements debugging functionality without the EEM API (not supporting data breakpoints and software breakpoints).

Remarks
After creating an instance of this class please call the Initialize() method.

Definition at line 21 of file MSP430Target.h.

Constructor & Destructor Documentation

MSP430Proxy::MSP430GDBTarget::MSP430GDBTarget ( )
inline

Definition at line 41 of file MSP430Target.h.

MSP430Proxy::MSP430GDBTarget::~MSP430GDBTarget ( )

Definition at line 56 of file MSP430Target.cpp.

Member Function Documentation

GDBServerFoundation::GDBStatus MSP430Proxy::MSP430GDBTarget::CommitFLASHWrite ( )
virtual

Definition at line 292 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::CreateBreakpoint ( BreakpointType  type,
ULONGLONG  Address,
unsigned  kind,
OUT INT_PTR *  pCookie 
)
virtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 241 of file MSP430Target.cpp.

bool MSP430Proxy::MSP430GDBTarget::DoResumeTarget ( RUN_MODES_t  mode)
protectedvirtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 306 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430Proxy::MSP430GDBTarget::EraseFLASH ( ULONGLONG  addr,
size_t  length 
)
virtual

Definition at line 275 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430Proxy::MSP430GDBTarget::ExecuteRemoteCommand ( const std::string &  command,
std::string &  output 
)
virtual

Definition at line 82 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::GetDynamicLibraryList ( std::vector< DynamicLibraryRecord > &  libraries)
virtual

Definition at line 221 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430Proxy::MSP430GDBTarget::GetEmbeddedMemoryRegions ( std::vector< EmbeddedMemoryRegion > &  regions)
virtual

Definition at line 111 of file MSP430Target.cpp.

virtual IFLASHProgrammer* MSP430Proxy::MSP430GDBTarget::GetFLASHProgrammer ( )
inlinevirtual

Definition at line 85 of file MSP430Target.h.

GDBServerFoundation::GDBStatus MSP430GDBTarget::GetLastStopRecord ( TargetStopRecord *  pRec)
virtual

Definition at line 122 of file MSP430Target.cpp.

virtual const PlatformRegisterList* MSP430Proxy::MSP430GDBTarget::GetRegisterList ( )
inlinevirtual

Definition at line 60 of file MSP430Target.h.

GDBServerFoundation::GDBStatus MSP430GDBTarget::GetThreadList ( std::vector< ThreadRecord > &  threads)
virtual

Definition at line 226 of file MSP430Target.cpp.

bool MSP430Proxy::MSP430GDBTarget::Initialize ( const GlobalSettings settings)
virtual

Starts debugging session.

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 11 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::ReadFrameRelatedRegisters ( int  threadID,
RegisterSetContainer &  registers 
)
virtual

Definition at line 156 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::ReadTargetMemory ( ULONGLONG  Address,
void *  pBuffer,
size_t *  pSizeInBytes 
)
virtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 198 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::ReadTargetRegisters ( int  threadID,
RegisterSetContainer &  registers 
)
virtual

Definition at line 168 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::RemoveBreakpoint ( BreakpointType  type,
ULONGLONG  Address,
INT_PTR  Cookie 
)
virtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 262 of file MSP430Target.cpp.

void MSP430Proxy::MSP430GDBTarget::ReportLastMSP430Error ( const char *  pHint)
protected

Definition at line 298 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::ResumeAndWait ( int  threadID)
virtual

Definition at line 129 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::SendBreakInRequestAsync ( )
virtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 150 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::SetThreadModeForNextCont ( int  threadID,
DebugThreadMode  mode,
OUT bool *  pNeedRestoreCall,
IN OUT INT_PTR *  pRestoreCookie 
)
virtual

Definition at line 231 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::Step ( int  threadID)
virtual

Definition at line 139 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::Terminate ( )
virtual

Definition at line 236 of file MSP430Target.cpp.

bool MSP430Proxy::MSP430GDBTarget::WaitForJTAGEvent ( )
protectedvirtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 67 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430Proxy::MSP430GDBTarget::WriteFLASH ( ULONGLONG  addr,
const void *  pBuffer,
size_t  length 
)
virtual

Definition at line 284 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::WriteTargetMemory ( ULONGLONG  Address,
const void *  pBuffer,
size_t  sizeInBytes 
)
virtual

Reimplemented in MSP430Proxy::MSP430EEMTarget.

Definition at line 205 of file MSP430Target.cpp.

GDBServerFoundation::GDBStatus MSP430GDBTarget::WriteTargetRegisters ( int  threadID,
const RegisterSetContainer &  registers 
)
virtual

Definition at line 180 of file MSP430Target.cpp.

Member Data Documentation

bool MSP430Proxy::MSP430GDBTarget::m_bFLASHCommandsUsed
protected

Definition at line 33 of file MSP430Target.h.

bool MSP430Proxy::MSP430GDBTarget::m_BreakInPending
protected

Definition at line 33 of file MSP430Target.h.

DEVICE_T MSP430Proxy::MSP430GDBTarget::m_DeviceInfo
protected

Definition at line 24 of file MSP430Target.h.


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