Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2013-01-23 17:41:02 +0000
committerMikhail Khodjaiants2013-01-23 18:13:05 +0000
commit815d32990ce4c76d76bf7170b0fdcdafd9687a3c (patch)
tree52c73c2cc990e245dad2a41d5d31ab712a4c5ffe /debug
parent2820e4b9fb6719c10b0dc0e8fef1568a231adf28 (diff)
downloadorg.eclipse.cdt-815d32990ce4c76d76bf7170b0fdcdafd9687a3c.tar.gz
org.eclipse.cdt-815d32990ce4c76d76bf7170b0fdcdafd9687a3c.tar.xz
org.eclipse.cdt-815d32990ce4c76d76bf7170b0fdcdafd9687a3c.zip
Bug 344890 - [remote] Cannot start a new process on a remote target with
extended-remote Change-Id: Iae6f29a8a549cc57577911bdc84cc95f6ba983df Reviewed-on: https://git.eclipse.org/r/7438 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com> IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com> Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java22
-rwxr-xr-xdebug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gifbin0 -> 949 bytes
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.properties6
-rw-r--r--debug/org.eclipse.cdt.debug.ui/plugin.xml33
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java23
5 files changed, 83 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java
new file mode 100644
index 00000000000..ecde45f0427
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IDebugNewExecutableHandler.java
@@ -0,0 +1,22 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Mentor Graphics 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:
+ * Mentor Graphics - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.debug.core.model;
+
+import org.eclipse.debug.core.commands.IDebugCommandHandler;
+
+/**
+ * Command handler for the "Debug New Executable" command.
+ *
+ * @since 7.3
+ */
+public interface IDebugNewExecutableHandler extends IDebugCommandHandler {
+}
diff --git a/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif b/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif
new file mode 100755
index 00000000000..78ca91c6dab
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/icons/obj16/new_exec.gif
Binary files differ
diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.properties b/debug/org.eclipse.cdt.debug.ui/plugin.properties
index 34cbb7d2d35..2266d66e86e 100644
--- a/debug/org.eclipse.cdt.debug.ui/plugin.properties
+++ b/debug/org.eclipse.cdt.debug.ui/plugin.properties
@@ -242,3 +242,9 @@ OpenNewView.name = Open New View
# Disassembly Ruler Column extension point
extPoint.disassemblyRulerColumn=Disassembly Ruler Column
+
+# Debug New Executable Command
+DebugNewExecutable.name=Debug New Executable
+DebugNewExecutable.description=Debug a new executable
+DebugNewExecutable.label=Debug New Executable...
+DebugNewExecutable.tooltip=Debug a new executable
diff --git a/debug/org.eclipse.cdt.debug.ui/plugin.xml b/debug/org.eclipse.cdt.debug.ui/plugin.xml
index 0188aa81f49..d2b3fc1b6f1 100644
--- a/debug/org.eclipse.cdt.debug.ui/plugin.xml
+++ b/debug/org.eclipse.cdt.debug.ui/plugin.xml
@@ -2012,7 +2012,12 @@
id="org.eclipse.cdt.debug.ui.command.connect"
name="%Connect.name">
</command>
-
+ <command
+ categoryId="org.eclipse.cdt.debug.ui.category.debugViewLayout"
+ description="%DebugNewExecutable.description"
+ id="org.eclipse.cdt.debug.ui.command.debugNewExecutable"
+ name="%DebugNewExecutable.name">
+ </command>
</extension>
<extension
point="org.eclipse.ui.handlers">
@@ -2079,6 +2084,10 @@
class="org.eclipse.cdt.debug.internal.ui.commands.ConnectCommandHandler"
commandId="org.eclipse.cdt.debug.ui.command.connect">
</handler>
+ <handler
+ class="org.eclipse.cdt.debug.internal.ui.commands.DebugNewExecutableHandler"
+ commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable">
+ </handler>
</extension>
<extension
point="org.eclipse.core.expressions.definitions">
@@ -2520,6 +2529,28 @@
</visibleWhen>
</command>
</menuContribution>
+<!--
+ <menuContribution
+ locationURI="toolbar:org.eclipse.debug.ui.DebugView?before=stepGroup">
+ <command
+ commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable"
+ icon="icons/obj16/new_exec.gif"
+ label="%DebugNewExecutable.label"
+ style="push"
+ tooltip="%DebugNewExecutable.tooltip">
+ </command>
+ </menuContribution>
+-->
+ <menuContribution
+ locationURI="popup:org.eclipse.debug.ui.DebugView?before=emptyLaunchGroup">
+ <command
+ commandId="org.eclipse.cdt.debug.ui.command.debugNewExecutable"
+ icon="icons/obj16/new_exec.gif"
+ label="%DebugNewExecutable.label"
+ style="push"
+ tooltip="%DebugNewExecutable.tooltip">
+ </command>
+ </menuContribution>
<!-- Connect contributions to debug view menu, toolbar menu -->
<menuContribution
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java
new file mode 100644
index 00000000000..dfd77e06a7c
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/commands/DebugNewExecutableHandler.java
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2012 Mentor Graphics 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:
+ * Mentor Graphics - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.debug.internal.ui.commands;
+
+import org.eclipse.cdt.debug.core.model.IDebugNewExecutableHandler;
+import org.eclipse.debug.ui.actions.DebugCommandHandler;
+
+public class DebugNewExecutableHandler extends DebugCommandHandler {
+
+ @Override
+ protected Class<?> getCommandType() {
+ return IDebugNewExecutableHandler.class;
+ }
+}

Back to the top