Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Khouzam2010-04-15 14:25:52 -0400
committerMarc Khouzam2010-04-15 14:25:52 -0400
commit57b3b3f6775bfaeeab64349cf56cd08166c14bfb (patch)
tree095b9e906709b9f3d99da6a14aafda2bcc8ce24d
parente030eb38136e5809fae0a8cb8b4487141191bb8f (diff)
downloadorg.eclipse.cdt-57b3b3f6775bfaeeab64349cf56cd08166c14bfb.tar.gz
org.eclipse.cdt-57b3b3f6775bfaeeab64349cf56cd08166c14bfb.tar.xz
org.eclipse.cdt-57b3b3f6775bfaeeab64349cf56cd08166c14bfb.zip
[309370] Remove code duplication and use the base clase code instead.
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java17
1 files changed, 2 insertions, 15 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java
index ca82d7c4ae..084bf498cd 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb/src/org/eclipse/cdt/dsf/gdb/service/GDBProcesses.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2008 Ericsson and others.
+ * Copyright (c) 2008, 2010 Ericsson 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
@@ -216,20 +216,7 @@ public class GDBProcesses extends MIProcesses {
inferiorProcess != null &&
inferiorProcess.getState() != MIInferiorProcess.State.TERMINATED) {
- final IMIContainerDMContext containerDmc = DMContexts.getAncestorOfType(dmc, IMIContainerDMContext.class);
- if (containerDmc == null) {
- // This service version only handles a single process to debug, therefore, we can simply
- // create the context describing this process ourselves.
- ICommandControlDMContext controlDmc = DMContexts.getAncestorOfType(dmc, ICommandControlDMContext.class);
- String groupId = MIProcesses.UNIQUE_GROUP_ID;
- IProcessDMContext procDmc = createProcessContext(controlDmc, groupId);
- IMIContainerDMContext newContainerDmc = createContainerContext(procDmc, groupId);
- rm.setData(new IContainerDMContext[] {newContainerDmc});
- rm.done();
- } else {
- // List of threads
- super.getProcessesBeingDebugged(dmc, rm);
- }
+ super.getProcessesBeingDebugged(dmc, rm);
} else {
rm.setData(new IDMContext[0]);
rm.done();

Back to the top