diff options
author | Sergey Prigogin | 2011-05-26 20:41:45 +0000 |
---|---|---|
committer | Sergey Prigogin | 2011-05-26 20:41:45 +0000 |
commit | 49a4f3518f3f2a355fc6c646235948efce95b8a0 (patch) | |
tree | f113f1c601329178fc50290dfd3e4f23639b6f5e | |
parent | 17d26298d85198f2d7eb8133a728aa5708e935fa (diff) | |
download | org.eclipse.cdt-49a4f3518f3f2a355fc6c646235948efce95b8a0.tar.gz org.eclipse.cdt-49a4f3518f3f2a355fc6c646235948efce95b8a0.tar.xz org.eclipse.cdt-49a4f3518f3f2a355fc6c646235948efce95b8a0.zip |
Cosmetics.
2 files changed, 7 insertions, 11 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 c162628ad19..352b1cc2982 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 @@ -65,12 +65,9 @@ import org.eclipse.debug.core.ILaunch; import org.eclipse.debug.core.model.IProcess; import org.osgi.framework.BundleContext; - public class GDBProcesses extends MIProcesses implements IGDBProcesses { - private class GDBContainerDMC extends MIContainerDMC - implements IMemoryDMContext - { + private class GDBContainerDMC extends MIContainerDMC implements IMemoryDMContext { public GDBContainerDMC(String sessionId, IProcessDMContext processDmc, String groupId) { super(sessionId, processDmc, groupId); } @@ -188,7 +185,7 @@ public class GDBProcesses extends MIProcesses implements IGDBProcesses { String name = fProcessNames.get(pid); if (name == null) { - // Hm. Strange. But if the pid is our inferior's, we can just use the binary name + // Hmm. Strange. But if the pid is our inferior's, we can just use the binary name if (fProcId != null && Integer.parseInt(fProcId) == pid) { name = fBackend.getProgramPath().lastSegment(); } @@ -561,7 +558,6 @@ public class GDBProcesses extends MIProcesses implements IGDBProcesses { createConsole(containerDmc, restart, new RequestMonitor(ImmediateExecutor.getInstance(), requestMonitor) { @Override protected void handleSuccess() { - final DataRequestMonitor<MIInfo> execMonitor = new DataRequestMonitor<MIInfo>(getExecutor(), requestMonitor) { @Override protected void handleSuccess() { @@ -653,14 +649,12 @@ public class GDBProcesses extends MIProcesses implements IGDBProcesses { */ @DsfServiceEventHandler public void eventDispatched(MIStoppedEvent e) { - -// Post-poned because 'info program' yields different result on different platforms. +// Postponed because 'info program' yields different result on different platforms. // https://bugs.eclipse.org/bugs/show_bug.cgi?id=305385#c20 // // // Get the PID of the inferior through gdb (if we don't have it already) // // // fGdb.getInferiorProcess().update(); - } } diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalRunLaunchDelegate.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalRunLaunchDelegate.java index 6022e80c497..f2b54b4c8ab 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalRunLaunchDelegate.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalRunLaunchDelegate.java @@ -93,12 +93,14 @@ public class LocalRunLaunchDelegate extends AbstractCLaunchDelegate { ICDTLaunchConfigurationConstants.ERR_INTERNAL_ERROR); } monitor.worked(1); - boolean stopInMain = config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false); + boolean stopInMain = config.getAttribute( + ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, false); String stopSymbol = null; - if (stopInMain) + if (stopInMain) { stopSymbol = launch.getLaunchConfiguration().getAttribute( ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN_SYMBOL, ICDTLaunchConfigurationConstants.DEBUGGER_STOP_AT_MAIN_SYMBOL_DEFAULT); + } ICDITarget[] targets = dsession.getTargets(); for (int i = 0; i < targets.length; i++) { |