|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.Plugin
org.eclipse.cdt.debug.mi.core.MIPlugin
public class MIPlugin
GDB/MI Plugin.
Field Summary | |
---|---|
static java.lang.String |
EXTENSION_POINT_COMMAND_FACTORIES
Simple identifier constant (value "commandFactories" )
for the "gdb/mi command factories" extension point. |
static java.lang.String |
PLUGIN_ID
The plug-in identifier of the Java core support (value "org.eclipse.jdt.core" ). |
Fields inherited from class org.eclipse.core.runtime.Plugin |
---|
PLUGIN_PREFERENCE_SCOPE, PREFERENCES_DEFAULT_OVERRIDE_BASE_NAME, PREFERENCES_DEFAULT_OVERRIDE_FILE_NAME |
Constructor Summary | |
---|---|
MIPlugin()
The constructor |
Method Summary | |
---|---|
org.eclipse.cdt.debug.mi.core.cdi.Session |
createCSession(java.lang.String gdb,
java.lang.String miVersion,
java.io.File program,
java.io.File core,
java.io.File cwd,
java.lang.String gdbinit,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. use createSession |
org.eclipse.cdt.debug.mi.core.cdi.Session |
createCSession(java.lang.String gdb,
java.lang.String miVersion,
java.io.File program,
java.io.File cwd,
java.lang.String gdbinit,
org.eclipse.cdt.debug.mi.core.IMITTY pty,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. use createSession |
org.eclipse.cdt.debug.mi.core.cdi.Session |
createCSession(java.lang.String gdb,
java.lang.String miVersion,
java.io.File program,
java.io.File cwd,
java.lang.String gdbinit,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. use createSession |
org.eclipse.cdt.debug.mi.core.cdi.Session |
createCSession(java.lang.String gdb,
java.lang.String miVersion,
java.io.File program,
int pid,
java.lang.String[] targetParams,
java.io.File cwd,
java.lang.String gdbinit,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. use createSession |
org.eclipse.cdt.debug.mi.core.MISession |
createMISession(org.eclipse.cdt.debug.mi.core.MIProcess process,
org.eclipse.cdt.debug.mi.core.IMITTY pty,
int timeout,
int type,
int launchTimeout,
java.lang.String miVersion,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. |
org.eclipse.cdt.debug.mi.core.MISession |
createMISession(org.eclipse.cdt.debug.mi.core.MIProcess process,
org.eclipse.cdt.debug.mi.core.IMITTY pty,
int type,
java.lang.String miVersion,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. |
org.eclipse.cdt.debug.mi.core.cdi.Session |
createSession(int sessionType,
java.lang.String gdb,
org.eclipse.cdt.debug.mi.core.command.CommandFactory factory,
java.io.File program,
java.lang.String[] extraArgs,
boolean usePty,
org.eclipse.core.runtime.IProgressMonitor monitor)
Starts a process by executing the following command: gdb -q -nw -i usePTY is true )
extraArgs program (if program is not null ) |
void |
debugLog(java.lang.String message)
|
static java.lang.String |
getCommandFactory(org.eclipse.debug.core.ILaunchConfiguration config)
|
org.eclipse.cdt.debug.mi.core.command.factories.CommandFactoryManager |
getCommandFactoryManager()
|
static int |
getCommandTimeout()
|
static MIPlugin |
getDefault()
Returns the singleton. |
static int |
getLaunchTimeout()
|
static java.lang.String |
getMIVersion(org.eclipse.debug.core.ILaunchConfiguration config)
|
static java.lang.String |
getResourceString(java.lang.String key)
|
static java.lang.String |
getUniqueIdentifier()
Convenience method which returns the unique identifier of this plugin. |
void |
start(org.osgi.framework.BundleContext context)
|
void |
stop(org.osgi.framework.BundleContext context)
|
Methods inherited from class org.eclipse.core.runtime.Plugin |
---|
find, find, getBundle, getDescriptor, getLog, getPluginPreferences, getStateLocation, internalInitializeDefaultPluginPreferences, isDebugging, openStream, openStream, savePluginPreferences, setDebugging, shutdown, startup, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PLUGIN_ID
"org.eclipse.jdt.core"
).
public static final java.lang.String EXTENSION_POINT_COMMAND_FACTORIES
"commandFactories"
)
for the "gdb/mi command factories" extension point.
Constructor Detail |
---|
public MIPlugin()
Plugin.Plugin()
Method Detail |
---|
public static MIPlugin getDefault()
public org.eclipse.cdt.debug.mi.core.MISession createMISession(org.eclipse.cdt.debug.mi.core.MIProcess process, org.eclipse.cdt.debug.mi.core.IMITTY pty, int timeout, int type, int launchTimeout, java.lang.String miVersion, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.cdt.debug.mi.core.MIException
Process
- PTY
- int
- int
-
MIException
public org.eclipse.cdt.debug.mi.core.MISession createMISession(org.eclipse.cdt.debug.mi.core.MIProcess process, org.eclipse.cdt.debug.mi.core.IMITTY pty, int type, java.lang.String miVersion, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.cdt.debug.mi.core.MIException
Process
- PTY
- type
-
MIException
public org.eclipse.cdt.debug.mi.core.cdi.Session createCSession(java.lang.String gdb, java.lang.String miVersion, java.io.File program, java.io.File cwd, java.lang.String gdbinit, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.cdt.debug.mi.core.MIException
createSession
program
-
MIException
java.io.IOException
public org.eclipse.cdt.debug.mi.core.cdi.Session createCSession(java.lang.String gdb, java.lang.String miVersion, java.io.File program, java.io.File cwd, java.lang.String gdbinit, org.eclipse.cdt.debug.mi.core.IMITTY pty, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.cdt.debug.mi.core.MIException
createSession
program
-
java.io.IOException
org.eclipse.cdt.debug.mi.core.MIException
public org.eclipse.cdt.debug.mi.core.cdi.Session createCSession(java.lang.String gdb, java.lang.String miVersion, java.io.File program, java.io.File core, java.io.File cwd, java.lang.String gdbinit, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.cdt.debug.mi.core.MIException
createSession
program
- core
-
java.io.IOException
org.eclipse.cdt.debug.mi.core.MIException
public org.eclipse.cdt.debug.mi.core.cdi.Session createCSession(java.lang.String gdb, java.lang.String miVersion, java.io.File program, int pid, java.lang.String[] targetParams, java.io.File cwd, java.lang.String gdbinit, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.cdt.debug.mi.core.MIException
createSession
program
- pid
-
java.io.IOException
org.eclipse.cdt.debug.mi.core.MIException
public org.eclipse.cdt.debug.mi.core.cdi.Session createSession(int sessionType, java.lang.String gdb, org.eclipse.cdt.debug.mi.core.command.CommandFactory factory, java.io.File program, java.lang.String[] extraArgs, boolean usePty, org.eclipse.core.runtime.IProgressMonitor monitor) throws java.io.IOException, org.eclipse.cdt.debug.mi.core.MIException
usePTY
is true
)
extraArgs program (if program
is not null
)
sessionType
- the type of debugging session:
MISession.PROGRAM
,
MISession.ATTACH
or MISession.CORE
gdb
- the name of the gdb filefactory
- the command set supported by gdbprogram
- a program to debug or null
extraArgs
- arguments to pass to gdbusePty
- whether to use pty or notmonitor
- a progress monitor
ICDISession
java.io.IOException
MIException
public static java.lang.String getUniqueIdentifier()
public void debugLog(java.lang.String message)
public static java.lang.String getResourceString(java.lang.String key)
public void start(org.osgi.framework.BundleContext context) throws java.lang.Exception
start
in interface org.osgi.framework.BundleActivator
start
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
public void stop(org.osgi.framework.BundleContext context) throws java.lang.Exception
stop
in interface org.osgi.framework.BundleActivator
stop
in class org.eclipse.core.runtime.Plugin
java.lang.Exception
public static int getCommandTimeout()
public static int getLaunchTimeout()
public static java.lang.String getMIVersion(org.eclipse.debug.core.ILaunchConfiguration config)
public static java.lang.String getCommandFactory(org.eclipse.debug.core.ILaunchConfiguration config)
public org.eclipse.cdt.debug.mi.core.command.factories.CommandFactoryManager getCommandFactoryManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |