org.eclipse.cdt.debug.internal.core.model
Class CModule

java.lang.Object
  extended by org.eclipse.core.runtime.PlatformObject
      extended by org.eclipse.cdt.debug.internal.core.model.CDebugElement
          extended by org.eclipse.cdt.debug.internal.core.model.CModule
All Implemented Interfaces:
ICDebugElement, ICDebugElementStatus, ICModule, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement

public class CModule
extends CDebugElement
implements ICModule

The CDI based implementation of ICModule. This implementation is experimental and needs to be changed when the CDI level support is available.


Field Summary
 
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICModule
EXECUTABLE, SHARED_LIBRARY
 
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElementStatus
ERROR, OK, WARNING
 
Method Summary
 boolean areSymbolsLoaded()
          Returns whether the symbols of this module are read.
 boolean canLoadSymbols()
          Returns whether the module's symbols can be loaded or reloaded.
static CModule createExecutable(CDebugTarget target, org.eclipse.core.runtime.IPath path)
           
static CModule createSharedLibrary(CDebugTarget target, org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary lib)
           
 void dispose()
           
 boolean equals(org.eclipse.cdt.debug.core.cdi.model.ICDIObject cdiObject)
           
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 IAddressFactory getAddressFactory()
          Returns the address factory associated with this module.
 IAddress getBaseAddress()
          Returns the base address of this module.
 java.lang.String getCPU()
          Returns the CPU identifier.
 org.eclipse.core.runtime.IPath getImageName()
          Returns the image name of this module.
 java.lang.String getName()
          Returns the name of this module.
 java.lang.String getPlatform()
          Returns the name of the platform.
 long getSize()
          Returns the size of this module.
 org.eclipse.core.runtime.IPath getSymbolsFileName()
          Returns the full path of the file from which symbols to be loaded.
 int getType()
          Returns the type of this module.
 boolean isLittleEndian()
          Returns whether this module is little endian.
 void loadSymbols()
          Loads the module symbols from the specified file.
 void setSymbolsFileName(org.eclipse.core.runtime.IPath symbolsFile)
          Associate the specified file as a symbol provider for this module.
 
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, getLaunch, getMessage, getModelIdentifier, getSeverity, getState, isOK, notSupported, requestFailed, requestFailed, targetRequestFailed, targetRequestFailed
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.cdt.debug.core.model.ICDebugElement
getCurrentStateInfo, getState
 
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement
getDebugTarget, getLaunch, getModelIdentifier
 

Method Detail

createExecutable

public static CModule createExecutable(CDebugTarget target,
                                       org.eclipse.core.runtime.IPath path)

createSharedLibrary

public static CModule createSharedLibrary(CDebugTarget target,
                                          org.eclipse.cdt.debug.core.cdi.model.ICDISharedLibrary lib)

getType

public int getType()
Description copied from interface: ICModule
Returns the type of this module. The returned value will be one of EXECUTABLE, SHARED_LIBRARY, CORE.

Specified by:
getType in interface ICModule
Returns:
the type of this module

getName

public java.lang.String getName()
Description copied from interface: ICModule
Returns the name of this module.

Specified by:
getName in interface ICModule
Returns:
the name of this module

getImageName

public org.eclipse.core.runtime.IPath getImageName()
Description copied from interface: ICModule
Returns the image name of this module. The name may or may not contain a full path.

Specified by:
getImageName in interface ICModule
Returns:
the image name of this module

getSymbolsFileName

public org.eclipse.core.runtime.IPath getSymbolsFileName()
Description copied from interface: ICModule
Returns the full path of the file from which symbols to be loaded.

Specified by:
getSymbolsFileName in interface ICModule
Returns:
the full path of the file from which symbols to be loaded

setSymbolsFileName

public void setSymbolsFileName(org.eclipse.core.runtime.IPath symbolsFile)
                        throws org.eclipse.debug.core.DebugException
Description copied from interface: ICModule
Associate the specified file as a symbol provider for this module. If null is passed as a file name the internal symbols search mechanism will be used.

Specified by:
setSymbolsFileName in interface ICModule
Parameters:
symbolsFile - the symbol provider for this module.
Throws:
org.eclipse.debug.core.DebugException - if this method fails. Reasons include:

getBaseAddress

public IAddress getBaseAddress()
Description copied from interface: ICModule
Returns the base address of this module.

Specified by:
getBaseAddress in interface ICModule
Returns:
the base address of this module

getSize

public long getSize()
Description copied from interface: ICModule
Returns the size of this module.

Specified by:
getSize in interface ICModule
Returns:
the size of this module

areSymbolsLoaded

public boolean areSymbolsLoaded()
Description copied from interface: ICModule
Returns whether the symbols of this module are read.

Specified by:
areSymbolsLoaded in interface ICModule
Returns:
whether the symbols of this module are read

canLoadSymbols

public boolean canLoadSymbols()
Description copied from interface: ICModule
Returns whether the module's symbols can be loaded or reloaded.

Specified by:
canLoadSymbols in interface ICModule
Returns:
whether the module's symbols can be loaded or reloaded

loadSymbols

public void loadSymbols()
                 throws org.eclipse.debug.core.DebugException
Description copied from interface: ICModule
Loads the module symbols from the specified file.

Specified by:
loadSymbols in interface ICModule
Throws:
org.eclipse.debug.core.DebugException - if this method fails. Reasons include:

getPlatform

public java.lang.String getPlatform()
Description copied from interface: ICModule
Returns the name of the platform.

Specified by:
getPlatform in interface ICModule
Returns:
the name of the platform

isLittleEndian

public boolean isLittleEndian()
Description copied from interface: ICModule
Returns whether this module is little endian.

Specified by:
isLittleEndian in interface ICModule
Returns:
whether this module is little endian

getAddressFactory

public IAddressFactory getAddressFactory()
Description copied from interface: ICModule
Returns the address factory associated with this module.

Specified by:
getAddressFactory in interface ICModule
Returns:
the address factory

getCPU

public java.lang.String getCPU()
Description copied from interface: ICModule
Returns the CPU identifier.

Specified by:
getCPU in interface ICModule
Returns:
the CPU identifier

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable
Overrides:
getAdapter in class CDebugElement

dispose

public void dispose()

equals

public boolean equals(org.eclipse.cdt.debug.core.cdi.model.ICDIObject cdiObject)