|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.cdt.debug.internal.core.model.CDebugElement
org.eclipse.cdt.debug.internal.core.model.CDebugTarget
public class CDebugTarget
Debug target for C/C++ debug model.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.debug.core.model.ITargetProperties |
---|
PREF_INSTRUCTION_STEPPING_MODE |
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElementStatus |
---|
ERROR, OK, WARNING |
Constructor Summary | |
---|---|
CDebugTarget(org.eclipse.debug.core.ILaunch launch,
org.eclipse.core.resources.IProject project,
org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget,
java.lang.String name,
org.eclipse.debug.core.model.IProcess debuggeeProcess,
IBinaryParser.IBinaryObject file,
boolean allowsTerminate,
boolean allowsDisconnect)
Constructor for CDebugTarget. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(org.eclipse.core.runtime.Preferences.IPropertyChangeListener listener)
Adds a property change listener to this target. |
void |
addRegisterGroup(java.lang.String name,
IRegisterDescriptor[] descriptors)
Adds a new user-defined register group to this target |
void |
breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
void |
breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
void |
breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
boolean |
canDisconnect()
|
boolean |
canRestart()
Returns whether this element can currently be restarted. |
boolean |
canResume()
|
boolean |
canResumeWithoutSignal()
Returns whether this element can currently be resumed without signal. |
boolean |
canSuspend()
|
boolean |
canTerminate()
|
ICGlobalVariable |
createGlobalVariable(IGlobalVariableDescriptor info)
|
void |
disconnect()
|
void |
enableInstructionStepping(boolean enabled)
Sets whether the instruction stepping are enabled in this debug target. |
void |
expressionAdded(org.eclipse.debug.core.model.IExpression expression)
|
void |
expressionChanged(org.eclipse.debug.core.model.IExpression expression)
|
void |
expressionRemoved(org.eclipse.debug.core.model.IExpression expression)
|
CThread |
findThread(org.eclipse.cdt.debug.core.cdi.model.ICDIThread cdiThread)
Finds and returns the model thread for the associated CDI thread, or null if not found. |
CThread |
findThread(java.util.List threads,
org.eclipse.cdt.debug.core.cdi.model.ICDIThread cdiThread)
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
IAddressFactory |
getAddressFactory()
|
IBinaryParser.IBinaryObject |
getBinaryFile()
|
IAddress |
getBreakpointAddress(ICLineBreakpoint breakpoint)
Returns the target address of the given breakpoint. |
IDisassembly |
getDisassembly()
Returns the disassembly provider of this debug target. |
IBinaryParser.IBinaryObject |
getExecFile()
|
IGlobalVariableDescriptor[] |
getGlobals()
|
java.lang.String |
getInternalID()
|
org.eclipse.debug.core.ILaunch |
getLaunch()
|
org.eclipse.debug.core.model.IMemoryBlock |
getMemoryBlock(long startAddress,
long length)
|
ICModule[] |
getModules()
Returns the array of the currently loaded modules. |
java.lang.String |
getName()
|
org.eclipse.debug.core.model.IProcess |
getProcess()
|
org.eclipse.core.resources.IProject |
getProject()
|
IRegisterDescriptor[] |
getRegisterDescriptors()
Returns the list of descriptors of the target registers |
org.eclipse.debug.core.model.IRegisterGroup[] |
getRegisterGroups(CStackFrame frame)
|
CRegisterManager |
getRegisterManager()
|
ICSignal[] |
getSignals()
Returns the list of signals defined for this target. |
org.eclipse.debug.core.model.IThread[] |
getThreads()
|
void |
handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
|
boolean |
hasModules()
Returns whether there are modules currently loaded in this debug target. |
boolean |
hasSignals()
Returns whether this target supports signals. |
boolean |
hasThreads()
|
boolean |
isAvailable()
Returns whether this target is available to handle client requests. |
boolean |
isDisconnected()
|
boolean |
isInstructionSteppingEnabled()
Returns whether the instruction stepping are currently enabled in this debug target. |
boolean |
isLittleEndian()
Returns whether this target is little endian. |
boolean |
isPostMortem()
Returns whether this target is a post mortem type. |
boolean |
isSuspended()
|
boolean |
isTerminated()
|
void |
launchAdded(org.eclipse.debug.core.ILaunch launch)
|
void |
launchChanged(org.eclipse.debug.core.ILaunch launch)
|
void |
launchRemoved(org.eclipse.debug.core.ILaunch launch)
|
void |
loadSymbolsForAllModules()
Load symbols for all currently loaded modules. |
void |
modifyRegisterGroup(IPersistableRegisterGroup group,
IRegisterDescriptor[] descriptors)
Replace the given group's register descriptors by the specified descriptors. |
void |
removePropertyChangeListener(org.eclipse.core.runtime.Preferences.IPropertyChangeListener listener)
Removes the given listener from this target. |
void |
removeRegisterGroups(org.eclipse.debug.core.model.IRegisterGroup[] groups)
Removes the given register group from the target |
void |
restart()
Causes this element to restart its execution. |
void |
restoreDefaultRegisterGroups()
Removes all user-defined register groups and restores the hardware groups. |
void |
resume()
|
void |
resumeWithoutSignal()
Causes this element to resume its execution ignoring a signal. |
void |
setInternalTemporaryBreakpoint(org.eclipse.cdt.debug.core.cdi.ICDILocation location)
|
void |
setName(java.lang.String name)
Sets the name of this debug target. |
void |
sourceContainersChanged(org.eclipse.debug.core.sourcelookup.ISourceLookupDirector director)
Notification that the source lookup containers have changed. |
void |
start(java.lang.String stopSymbol,
boolean resume)
|
boolean |
supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
boolean |
supportsInstructionStepping()
Returns whether this debug target supports instruction stepping. |
boolean |
supportsStorageRetrieval()
|
void |
suspend()
|
void |
terminate()
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.cdt.debug.internal.core.model.CDebugElement |
---|
createChangeEvent, createCreateEvent, createResumeEvent, createSuspendEvent, createTerminateEvent, fireChangeEvent, fireCreationEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getCDISession, getCDITarget, getCurrentStateInfo, getDebugTarget, getMessage, getModelIdentifier, getSeverity, getState, isOK, notSupported, requestFailed, requestFailed, targetRequestFailed, targetRequestFailed |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getDebugTarget, getModelIdentifier |
Methods inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElement |
---|
getCurrentStateInfo, getState |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
---|
getDebugTarget, getModelIdentifier |
Constructor Detail |
---|
public CDebugTarget(org.eclipse.debug.core.ILaunch launch, org.eclipse.core.resources.IProject project, org.eclipse.cdt.debug.core.cdi.model.ICDITarget cdiTarget, java.lang.String name, org.eclipse.debug.core.model.IProcess debuggeeProcess, IBinaryParser.IBinaryObject file, boolean allowsTerminate, boolean allowsDisconnect)
Method Detail |
---|
public void start(java.lang.String stopSymbol, boolean resume) throws org.eclipse.debug.core.DebugException
org.eclipse.debug.core.DebugException
public org.eclipse.debug.core.model.IProcess getProcess()
getProcess
in interface org.eclipse.debug.core.model.IDebugTarget
public org.eclipse.debug.core.model.IThread[] getThreads()
getThreads
in interface org.eclipse.debug.core.model.IDebugTarget
public boolean hasThreads() throws org.eclipse.debug.core.DebugException
hasThreads
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
public java.lang.String getName() throws org.eclipse.debug.core.DebugException
getName
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
public void setName(java.lang.String name)
name
- the name of this debug targetpublic boolean supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
supportsBreakpoint
in interface org.eclipse.debug.core.model.IDebugTarget
public void launchRemoved(org.eclipse.debug.core.ILaunch launch)
launchRemoved
in interface org.eclipse.debug.core.ILaunchListener
public void launchAdded(org.eclipse.debug.core.ILaunch launch)
launchAdded
in interface org.eclipse.debug.core.ILaunchListener
public void launchChanged(org.eclipse.debug.core.ILaunch launch)
launchChanged
in interface org.eclipse.debug.core.ILaunchListener
public boolean canTerminate()
canTerminate
in interface org.eclipse.debug.core.model.ITerminate
public boolean isTerminated()
isTerminated
in interface org.eclipse.debug.core.model.ITerminate
public void terminate() throws org.eclipse.debug.core.DebugException
terminate
in interface org.eclipse.debug.core.model.ITerminate
org.eclipse.debug.core.DebugException
public boolean canResume()
canResume
in interface org.eclipse.debug.core.model.ISuspendResume
public boolean canSuspend()
canSuspend
in interface org.eclipse.debug.core.model.ISuspendResume
public boolean isSuspended()
isSuspended
in interface org.eclipse.debug.core.model.ISuspendResume
public void resume() throws org.eclipse.debug.core.DebugException
resume
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
public void suspend() throws org.eclipse.debug.core.DebugException
suspend
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
public void breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
breakpointAdded
in interface org.eclipse.debug.core.IBreakpointListener
public void breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint, org.eclipse.core.resources.IMarkerDelta delta)
breakpointRemoved
in interface org.eclipse.debug.core.IBreakpointListener
public void breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint, org.eclipse.core.resources.IMarkerDelta delta)
breakpointChanged
in interface org.eclipse.debug.core.IBreakpointListener
public boolean canDisconnect()
canDisconnect
in interface org.eclipse.debug.core.model.IDisconnect
public void disconnect() throws org.eclipse.debug.core.DebugException
disconnect
in interface org.eclipse.debug.core.model.IDisconnect
org.eclipse.debug.core.DebugException
public boolean isDisconnected()
isDisconnected
in interface org.eclipse.debug.core.model.IDisconnect
public boolean supportsStorageRetrieval()
supportsStorageRetrieval
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
public org.eclipse.debug.core.model.IMemoryBlock getMemoryBlock(long startAddress, long length) throws org.eclipse.debug.core.DebugException
getMemoryBlock
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
org.eclipse.debug.core.DebugException
public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch
in interface org.eclipse.debug.core.model.IDebugElement
getLaunch
in class CDebugElement
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in class CDebugElement
public void handleDebugEvents(org.eclipse.cdt.debug.core.cdi.event.ICDIEvent[] events)
handleDebugEvents
in interface org.eclipse.cdt.debug.core.cdi.event.ICDIEventListener
public boolean canRestart()
IRestart
canRestart
in interface IRestart
public void restart() throws org.eclipse.debug.core.DebugException
IRestart
restart
in interface IRestart
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public boolean isAvailable()
public CThread findThread(org.eclipse.cdt.debug.core.cdi.model.ICDIThread cdiThread)
null
if not found.
the
- underlying CDI thread
public CThread findThread(java.util.List threads, org.eclipse.cdt.debug.core.cdi.model.ICDIThread cdiThread)
public void expressionAdded(org.eclipse.debug.core.model.IExpression expression)
expressionAdded
in interface org.eclipse.debug.core.IExpressionListener
public void expressionChanged(org.eclipse.debug.core.model.IExpression expression)
expressionChanged
in interface org.eclipse.debug.core.IExpressionListener
public void expressionRemoved(org.eclipse.debug.core.model.IExpression expression)
expressionRemoved
in interface org.eclipse.debug.core.IExpressionListener
public void setInternalTemporaryBreakpoint(org.eclipse.cdt.debug.core.cdi.ICDILocation location) throws org.eclipse.debug.core.DebugException
org.eclipse.debug.core.DebugException
public boolean isLittleEndian()
ICDebugTarget
isLittleEndian
in interface ICDebugTarget
isLittleEndian
in interface IExecFileInfo
public IBinaryParser.IBinaryObject getExecFile()
getExecFile
in interface IExecFileInfo
public IBinaryParser.IBinaryObject getBinaryFile()
public org.eclipse.core.resources.IProject getProject()
public IGlobalVariableDescriptor[] getGlobals() throws org.eclipse.debug.core.DebugException
getGlobals
in interface IExecFileInfo
org.eclipse.debug.core.DebugException
public boolean canResumeWithoutSignal()
IResumeWithoutSignal
canResumeWithoutSignal
in interface IResumeWithoutSignal
public void resumeWithoutSignal() throws org.eclipse.debug.core.DebugException
IResumeWithoutSignal
resumeWithoutSignal
in interface IResumeWithoutSignal
org.eclipse.debug.core.DebugException
- on failure. Reasons include:public CRegisterManager getRegisterManager()
public org.eclipse.debug.core.model.IRegisterGroup[] getRegisterGroups(CStackFrame frame) throws org.eclipse.debug.core.DebugException
org.eclipse.debug.core.DebugException
public java.lang.String toString()
toString
in class java.lang.Object
public IDisassembly getDisassembly() throws org.eclipse.debug.core.DebugException
ICDebugTarget
getDisassembly
in interface ICDebugTarget
org.eclipse.debug.core.DebugException
- if this method fails.public ICSignal[] getSignals() throws org.eclipse.debug.core.DebugException
ICDebugTarget
getSignals
in interface ICDebugTarget
org.eclipse.debug.core.DebugException
- if this method fails.public boolean hasSignals() throws org.eclipse.debug.core.DebugException
ICDebugTarget
hasSignals
in interface ICDebugTarget
org.eclipse.debug.core.DebugException
- if this method fails.public IAddress getBreakpointAddress(ICLineBreakpoint breakpoint) throws org.eclipse.debug.core.DebugException
ICDebugTarget
getBreakpointAddress
in interface ICDebugTarget
org.eclipse.debug.core.DebugException
- if the address is not availablepublic void enableInstructionStepping(boolean enabled)
ISteppingModeTarget
enableInstructionStepping
in interface ISteppingModeTarget
enabled
- whether the instruction stepping are enabled in this debug targetpublic boolean isInstructionSteppingEnabled()
ISteppingModeTarget
isInstructionSteppingEnabled
in interface ISteppingModeTarget
public boolean supportsInstructionStepping()
ISteppingModeTarget
supportsInstructionStepping
in interface ISteppingModeTarget
public void addPropertyChangeListener(org.eclipse.core.runtime.Preferences.IPropertyChangeListener listener)
ITargetProperties
addPropertyChangeListener
in interface ITargetProperties
listener
- a property change listenerpublic void removePropertyChangeListener(org.eclipse.core.runtime.Preferences.IPropertyChangeListener listener)
ITargetProperties
removePropertyChangeListener
in interface ITargetProperties
listener
- a property change listenerpublic boolean isPostMortem()
ICDebugTarget
isPostMortem
in interface ICDebugTarget
public IAddressFactory getAddressFactory()
public ICGlobalVariable createGlobalVariable(IGlobalVariableDescriptor info) throws org.eclipse.debug.core.DebugException
org.eclipse.debug.core.DebugException
public void sourceContainersChanged(org.eclipse.debug.core.sourcelookup.ISourceLookupDirector director)
ISourceLookupChangeListener
sourceContainersChanged
in interface ISourceLookupChangeListener
public IRegisterDescriptor[] getRegisterDescriptors() throws org.eclipse.debug.core.DebugException
ICDebugTarget
getRegisterDescriptors
in interface ICDebugTarget
org.eclipse.debug.core.DebugException
- if this method fails. Reasons include:public void addRegisterGroup(java.lang.String name, IRegisterDescriptor[] descriptors)
ICDebugTarget
addRegisterGroup
in interface ICDebugTarget
name
- the group namedescriptors
- the list of registers to be groupedpublic void removeRegisterGroups(org.eclipse.debug.core.model.IRegisterGroup[] groups)
ICDebugTarget
removeRegisterGroups
in interface ICDebugTarget
public void modifyRegisterGroup(IPersistableRegisterGroup group, IRegisterDescriptor[] descriptors)
ICDebugTarget
modifyRegisterGroup
in interface ICDebugTarget
group
- a group to be modifieddescriptors
- a descriptor array to replace existing descriptorspublic void restoreDefaultRegisterGroups()
ICDebugTarget
restoreDefaultRegisterGroups
in interface ICDebugTarget
public boolean hasModules() throws org.eclipse.debug.core.DebugException
IModuleRetrieval
hasModules
in interface IModuleRetrieval
org.eclipse.debug.core.DebugException
public ICModule[] getModules() throws org.eclipse.debug.core.DebugException
IModuleRetrieval
getModules
in interface IModuleRetrieval
org.eclipse.debug.core.DebugException
- if this method fails. Reasons include:public void loadSymbolsForAllModules() throws org.eclipse.debug.core.DebugException
IModuleRetrieval
loadSymbolsForAllModules
in interface IModuleRetrieval
org.eclipse.debug.core.DebugException
- if this method fails. Reasons include:public java.lang.String getInternalID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |