mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
Init rev; plugin that houses things common between DSF-GDB and
CDI-GDB for features/bug-fixes going forward
This commit is contained in:
parent
ab2d1ddfee
commit
40cadb2a86
18 changed files with 482 additions and 0 deletions
7
debug/org.eclipse.cdt.gdb.ui/.classpath
Normal file
7
debug/org.eclipse.cdt.gdb.ui/.classpath
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
28
debug/org.eclipse.cdt.gdb.ui/.project
Normal file
28
debug/org.eclipse.cdt.gdb.ui/.project
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.cdt.gdb.ui</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,8 @@
|
||||||
|
#Wed Apr 07 17:06:17 CDT 2010
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.5
|
14
debug/org.eclipse.cdt.gdb.ui/META-INF/MANIFEST.MF
Normal file
14
debug/org.eclipse.cdt.gdb.ui/META-INF/MANIFEST.MF
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: %pluginName
|
||||||
|
Bundle-SymbolicName: org.eclipse.cdt.gdb.ui;singleton:=true
|
||||||
|
Bundle-Version: 7.0.0.qualifier
|
||||||
|
Bundle-Activator: org.eclipse.cdt.gdb.ui.internal.Activator
|
||||||
|
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.6.0",
|
||||||
|
org.eclipse.ui;bundle-version="3.6.0",
|
||||||
|
org.eclipse.cdt.debug.ui;bundle-version="7.0.0"
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
|
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||||
|
Bundle-Vendor: %providerName
|
||||||
|
Bundle-Localization: plugin
|
||||||
|
Export-Package: org.eclipse.cdt.gdb.ui.internal;x-internal:=true
|
24
debug/org.eclipse.cdt.gdb.ui/about.html
Normal file
24
debug/org.eclipse.cdt.gdb.ui/about.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||||
|
|
||||||
|
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>About</title></head><body lang="EN-US">
|
||||||
|
<h2>About This Content</h2>
|
||||||
|
|
||||||
|
<p>June 5, 2007</p>
|
||||||
|
<h3>License</h3>
|
||||||
|
|
||||||
|
<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
|
||||||
|
indicated below, the Content is provided to you under the terms and conditions of the
|
||||||
|
Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
|
||||||
|
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
|
||||||
|
For purposes of the EPL, "Program" will mean the Content.</p>
|
||||||
|
|
||||||
|
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
|
||||||
|
being redistributed by another party ("Redistributor") and different terms and conditions may
|
||||||
|
apply to your use of any object code in the Content. Check the Redistributor's license that was
|
||||||
|
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
|
||||||
|
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
|
||||||
|
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
|
||||||
|
|
||||||
|
</body></html>
|
6
debug/org.eclipse.cdt.gdb.ui/build.properties
Normal file
6
debug/org.eclipse.cdt.gdb.ui/build.properties
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
source.. = src/
|
||||||
|
output.. = bin/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.,\
|
||||||
|
plugin.xml,\
|
||||||
|
plugin.properties
|
32
debug/org.eclipse.cdt.gdb.ui/plugin.properties
Normal file
32
debug/org.eclipse.cdt.gdb.ui/plugin.properties
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
###############################################################################
|
||||||
|
# Copyright (c) 2010 Freescale Semiconductor and others.
|
||||||
|
# All rights reserved. This program and the accompanying materials
|
||||||
|
# are made available under the terms of the Eclipse Public License v1.0
|
||||||
|
# which accompanies this distribution, and is available at
|
||||||
|
# http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
#
|
||||||
|
# Contributors:
|
||||||
|
# Freescale Semiconductor - initial API and implementation
|
||||||
|
###############################################################################
|
||||||
|
pluginName=GDB UI Common
|
||||||
|
providerName=Eclipse CDT
|
||||||
|
|
||||||
|
catchType.label = Event Type
|
||||||
|
catchSignal.label = Signal Caught
|
||||||
|
catchSignal.arg.label = Signal Number
|
||||||
|
catchCatch.label = Exception Caught
|
||||||
|
catchThrow.label = Exception Thrown
|
||||||
|
|
||||||
|
#Note: fork, vfork and exec is not translatable words
|
||||||
|
catchFork.label = Stop on fork
|
||||||
|
catchVfork.label = Stop on vfork
|
||||||
|
catchExec.label = Stop on exec
|
||||||
|
|
||||||
|
catchExit.label = Process exit
|
||||||
|
catchStop.label = Process suspend
|
||||||
|
catchStart.label = Process start
|
||||||
|
catchThreadExit.label = Thread exit
|
||||||
|
catchThreadStart.label = Thread start
|
||||||
|
catchThreadJoin.label = Thread join
|
||||||
|
catchLoad.label = Library load
|
||||||
|
catchUnload.label = Library unload
|
57
debug/org.eclipse.cdt.gdb.ui/plugin.xml
Normal file
57
debug/org.eclipse.cdt.gdb.ui/plugin.xml
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?eclipse version="3.4"?>
|
||||||
|
<plugin>
|
||||||
|
<extension point="org.eclipse.cdt.debug.ui.breakpointContribution">
|
||||||
|
<breakpointLabels
|
||||||
|
markerType="org.eclipse.cdt.debug.core.cEventBreakpointMarker">
|
||||||
|
<attribute name="org.eclipse.cdt.debug.core.eventbreakpoint_event_id" label="%catchType.label" type="string">
|
||||||
|
<value
|
||||||
|
label="%catchCatch.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch"/>
|
||||||
|
<value
|
||||||
|
label="%catchThrow.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.throw"/>
|
||||||
|
<value
|
||||||
|
label="%catchSignal.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.signal">
|
||||||
|
<attribute
|
||||||
|
name="org.eclipse.cdt.debug.core.eventbreakpoint_event_arg" label="%catchSignal.arg.label"
|
||||||
|
type="integer" fieldEditor="org.eclipse.jface.preference.IntegerFieldEditor"/>
|
||||||
|
</value>
|
||||||
|
<value
|
||||||
|
label="%catchFork.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_fork"/>
|
||||||
|
<value
|
||||||
|
label="%catchVfork.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_vfork"/>
|
||||||
|
<value
|
||||||
|
label="%catchExec.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_exec"/>
|
||||||
|
<value
|
||||||
|
label="%catchExit.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_exit"/>
|
||||||
|
<value
|
||||||
|
label="%catchStop.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_stop"/>
|
||||||
|
<value
|
||||||
|
label="%catchStart.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_start"/>
|
||||||
|
<value
|
||||||
|
label="%catchThreadStart.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_thread_start"/>
|
||||||
|
<value
|
||||||
|
label="%catchThreadExit.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_thread_exit"/>
|
||||||
|
<value
|
||||||
|
label="%catchThreadJoin.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_thread_join"/>
|
||||||
|
<value
|
||||||
|
label="%catchLoad.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_load"/>
|
||||||
|
<value
|
||||||
|
label="%catchUnload.label"
|
||||||
|
value="org.eclipse.cdt.debug.gdb.catch_unload"/>
|
||||||
|
</attribute>
|
||||||
|
</breakpointLabels>
|
||||||
|
</extension>
|
||||||
|
</plugin>
|
|
@ -0,0 +1,45 @@
|
||||||
|
package org.eclipse.cdt.gdb.ui.internal;
|
||||||
|
|
||||||
|
import org.eclipse.ui.plugin.AbstractUIPlugin;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The activator class controls the plug-in life cycle
|
||||||
|
*/
|
||||||
|
public class Activator extends AbstractUIPlugin {
|
||||||
|
|
||||||
|
/** The plug-in ID */
|
||||||
|
public static final String PLUGIN_ID = "org.eclipse.cdt.gdb"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/** The singleton instance */
|
||||||
|
private static Activator plugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The constructor
|
||||||
|
*/
|
||||||
|
public Activator() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
|
||||||
|
*/
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
super.start(context);
|
||||||
|
plugin = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
|
||||||
|
*/
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
plugin = null;
|
||||||
|
super.stop(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the shared instance
|
||||||
|
*/
|
||||||
|
public static Activator getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
}
|
7
debug/org.eclipse.cdt.gdb/.classpath
Normal file
7
debug/org.eclipse.cdt.gdb/.classpath
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<classpath>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
|
||||||
|
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
|
||||||
|
<classpathentry kind="src" path="src"/>
|
||||||
|
<classpathentry kind="output" path="bin"/>
|
||||||
|
</classpath>
|
28
debug/org.eclipse.cdt.gdb/.project
Normal file
28
debug/org.eclipse.cdt.gdb/.project
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<projectDescription>
|
||||||
|
<name>org.eclipse.cdt.gdb</name>
|
||||||
|
<comment></comment>
|
||||||
|
<projects>
|
||||||
|
</projects>
|
||||||
|
<buildSpec>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.ManifestBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.eclipse.pde.SchemaBuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
|
</buildSpec>
|
||||||
|
<natures>
|
||||||
|
<nature>org.eclipse.pde.PluginNature</nature>
|
||||||
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
|
</natures>
|
||||||
|
</projectDescription>
|
|
@ -0,0 +1,8 @@
|
||||||
|
#Wed Apr 07 17:06:17 CDT 2010
|
||||||
|
eclipse.preferences.version=1
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||||
|
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||||
|
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
|
org.eclipse.jdt.core.compiler.source=1.5
|
14
debug/org.eclipse.cdt.gdb/META-INF/MANIFEST.MF
Normal file
14
debug/org.eclipse.cdt.gdb/META-INF/MANIFEST.MF
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
Manifest-Version: 1.0
|
||||||
|
Bundle-ManifestVersion: 2
|
||||||
|
Bundle-Name: %pluginName
|
||||||
|
Bundle-SymbolicName: org.eclipse.cdt.gdb;singleton:=true
|
||||||
|
Bundle-Version: 7.0.0.qualifier
|
||||||
|
Bundle-Activator: org.eclipse.cdt.gdb.internal.Activator
|
||||||
|
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.6.0",
|
||||||
|
org.eclipse.cdt.debug.ui;bundle-version="7.0.0"
|
||||||
|
Bundle-ActivationPolicy: lazy
|
||||||
|
Bundle-RequiredExecutionEnvironment: J2SE-1.5
|
||||||
|
Bundle-Vendor: %providerName
|
||||||
|
Bundle-Localization: plugin
|
||||||
|
Export-Package: org.eclipse.cdt.gdb.eventbkpts,
|
||||||
|
org.eclipse.cdt.gdb.internal;x-internal:=true
|
24
debug/org.eclipse.cdt.gdb/about.html
Normal file
24
debug/org.eclipse.cdt.gdb/about.html
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||||
|
|
||||||
|
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>About</title></head><body lang="EN-US">
|
||||||
|
<h2>About This Content</h2>
|
||||||
|
|
||||||
|
<p>June 5, 2007</p>
|
||||||
|
<h3>License</h3>
|
||||||
|
|
||||||
|
<p>The Eclipse Foundation makes available all content in this plug-in ("Content"). Unless otherwise
|
||||||
|
indicated below, the Content is provided to you under the terms and conditions of the
|
||||||
|
Eclipse Public License Version 1.0 ("EPL"). A copy of the EPL is available
|
||||||
|
at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
|
||||||
|
For purposes of the EPL, "Program" will mean the Content.</p>
|
||||||
|
|
||||||
|
<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
|
||||||
|
being redistributed by another party ("Redistributor") and different terms and conditions may
|
||||||
|
apply to your use of any object code in the Content. Check the Redistributor's license that was
|
||||||
|
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
|
||||||
|
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
|
||||||
|
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
|
||||||
|
|
||||||
|
</body></html>
|
5
debug/org.eclipse.cdt.gdb/build.properties
Normal file
5
debug/org.eclipse.cdt.gdb/build.properties
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
source.. = src/
|
||||||
|
output.. = bin/
|
||||||
|
bin.includes = META-INF/,\
|
||||||
|
.,\
|
||||||
|
plugin.properties
|
12
debug/org.eclipse.cdt.gdb/plugin.properties
Normal file
12
debug/org.eclipse.cdt.gdb/plugin.properties
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
###############################################################################
|
||||||
|
# Copyright (c) 2010 Freescale Semiconductor and others.
|
||||||
|
# All rights reserved. This program and the accompanying materials
|
||||||
|
# are made available under the terms of the Eclipse Public License v1.0
|
||||||
|
# which accompanies this distribution, and is available at
|
||||||
|
# http://www.eclipse.org/legal/epl-v10.html
|
||||||
|
#
|
||||||
|
# Contributors:
|
||||||
|
# Freescale Semiconductor - initial API and implementation
|
||||||
|
###############################################################################
|
||||||
|
pluginName=GDB Common
|
||||||
|
providerName=Eclipse CDT
|
|
@ -0,0 +1,118 @@
|
||||||
|
package org.eclipse.cdt.gdb.eventbkpts;
|
||||||
|
|
||||||
|
public interface IEventBreakpointConstants {
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* catches a C++ exception. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_CATCH = "org.eclipse.cdt.debug.gdb.catch"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* throws a C++ exception. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_THROW = "org.eclipse.cdt.debug.gdb.throw"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* catches a signal (POSIX). This type of event has a single parameter of
|
||||||
|
* type in, indicating the specific signal.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_SIGNAL_CATCH = "org.eclipse.cdt.debug.gdb.signal"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* calls fork() (POSIX). This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_FORK = "org.eclipse.cdt.debug.gdb.catch_fork"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* calls vfork() (POSIX). This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_VFORK = "org.eclipse.cdt.debug.gdb.catch_vfork"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* calls exec() (POSIX). This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_EXEC = "org.eclipse.cdt.debug.gdb.catch_exec"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* calls exit() (POSIX). This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_EXIT = "org.eclipse.cdt.debug.gdb.catch_exit"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when a new
|
||||||
|
* process starts. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_PROCESS_START = "org.eclipse.cdt.debug.gdb.catch_start"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when a
|
||||||
|
* process exits. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_PROCESS_STOP = "org.eclipse.cdt.debug.gdb.catch_stop"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when a new
|
||||||
|
* thread starts. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_THREAD_START = "org.eclipse.cdt.debug.gdb.catch_thread_start"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when a
|
||||||
|
* thread exits. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_THREAD_EXIT = "org.eclipse.cdt.debug.gdb.catch_thread_exit"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when a
|
||||||
|
* thread joins another one (waits for it to exit) This type of event has no
|
||||||
|
* parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_THREAD_JOIN = "org.eclipse.cdt.debug.gdb.catch_thread_join"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* loads a library. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_LIBRARY_LOAD = "org.eclipse.cdt.debug.gdb.catch_load"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/**
|
||||||
|
* An event breakpoint of this type suspends the target program when it
|
||||||
|
* unloads a library. This type of event has no parameters.
|
||||||
|
*
|
||||||
|
* @since 7.0
|
||||||
|
*/
|
||||||
|
public static final String EVENT_TYPE_LIBRARY_UNLOAD = "org.eclipse.cdt.debug.gdb.catch_unload"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
package org.eclipse.cdt.gdb.internal;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.Plugin;
|
||||||
|
import org.osgi.framework.BundleContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The activator class controls the plug-in life cycle
|
||||||
|
*/
|
||||||
|
public class Activator extends Plugin {
|
||||||
|
|
||||||
|
/** The plug-in ID */
|
||||||
|
public static final String PLUGIN_ID = "org.eclipse.cdt.gdb"; //$NON-NLS-1$
|
||||||
|
|
||||||
|
/** The singleton instance */
|
||||||
|
private static Activator plugin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The constructor
|
||||||
|
*/
|
||||||
|
public Activator() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
|
||||||
|
*/
|
||||||
|
public void start(BundleContext context) throws Exception {
|
||||||
|
super.start(context);
|
||||||
|
plugin = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* (non-Javadoc)
|
||||||
|
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
|
||||||
|
*/
|
||||||
|
public void stop(BundleContext context) throws Exception {
|
||||||
|
plugin = null;
|
||||||
|
super.stop(context);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return the shared instance
|
||||||
|
*/
|
||||||
|
public static Activator getDefault() {
|
||||||
|
return plugin;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue