Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2009-09-02 16:30:27 -0400
committereutarass2009-09-02 16:30:27 -0400
commit63c23ca255c52bd0ca6c29fd4f3758cdef1da49a (patch)
tree383f60e29ff169e42ee13c6dcc402c077fbb4bde /plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions
parentd1598d1e38275606cade2dbcfed327bf9593ff5f (diff)
downloadorg.eclipse.tcf-63c23ca255c52bd0ca6c29fd4f3758cdef1da49a.tar.gz
org.eclipse.tcf-63c23ca255c52bd0ca6c29fd4f3758cdef1da49a.tar.xz
org.eclipse.tcf-63c23ca255c52bd0ca6c29fd4f3758cdef1da49a.zip
Code cleanup: trailing spaces are removed from the source line
Diffstat (limited to 'plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions')
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java16
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java12
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java12
-rw-r--r--plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java16
4 files changed, 28 insertions, 28 deletions
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java
index 7e298146f..5c2d956b8 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFAction.java
@@ -1,10 +1,10 @@
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. 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
- *
+ * 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:
* Wind River Systems - initial API and implementation
*******************************************************************************/
@@ -21,7 +21,7 @@ import org.eclipse.tm.tcf.protocol.Protocol;
* it does not make sense to execute two step commands concurrently.
* If user requests actions faster then they are executed,
* actions are placed into a FIFO queue.
- *
+ *
* Clients are expected to implement run() method to perform the action job.
* When the job is done, client code should call done() method.
*/
@@ -29,7 +29,7 @@ public abstract class TCFAction implements Runnable {
protected final TCFLaunch launch;
protected final String context_id;
-
+
public TCFAction(TCFLaunch launch, String context_id) {
assert Protocol.isDispatchThread();
assert context_id != null;
@@ -37,7 +37,7 @@ public abstract class TCFAction implements Runnable {
this.context_id = context_id;
launch.addContextAction(this, context_id);
}
-
+
protected void done() {
assert Protocol.isDispatchThread();
launch.removeContextAction(this, context_id);
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java
index b2595ae0b..40735ad34 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepInto.java
@@ -20,7 +20,7 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl
private final boolean src_step;
private final IRunControl rc = launch.getService(IRunControl.class);
-
+
private IRunControl.RunControlContext ctx;
private TCFDataCache<TCFContextState> state;
private TCFDataCache<TCFSourceRef> line_info;
@@ -28,15 +28,15 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl
private BigInteger pc0;
private BigInteger pc1;
private int step_cnt;
-
+
protected boolean exited;
-
+
public TCFActionStepInto(TCFLaunch launch, IRunControl.RunControlContext ctx, boolean src_step) {
super(launch, ctx.getID());
this.ctx = ctx;
this.src_step = src_step;
}
-
+
protected abstract TCFDataCache<TCFContextState> getContextState();
protected abstract TCFDataCache<TCFSourceRef> getLineInfo();
protected abstract TCFDataCache<?> getStackTrace();
@@ -161,7 +161,7 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl
exit(new Exception("Step into is not supported"));
}
}
-
+
private boolean isSameLine(ILineNumbers.CodeArea x, ILineNumbers.CodeArea y) {
if (x == null || y == null) return false;
if (x.start_line != y.start_line) return false;
@@ -169,7 +169,7 @@ public abstract class TCFActionStepInto extends TCFAction implements IRunControl
if (x.file != y.file && (x.file == null || !x.file.equals(y.file))) return false;
return true;
}
-
+
protected void exit(Throwable error) {
if (exited) return;
rc.removeListener(this);
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java
index b6e64a286..d4c598c7f 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOut.java
@@ -16,27 +16,27 @@ import org.eclipse.tm.tcf.util.TCFDataCache;
public abstract class TCFActionStepOut extends TCFAction implements IRunControl.RunControlListener {
private static final long TIMEOUT = 10000;
-
+
private final IRunControl rc = launch.getService(IRunControl.class);
private final IBreakpoints bps = launch.getService(IBreakpoints.class);
-
+
private IRunControl.RunControlContext ctx;
private TCFDataCache<TCFContextState> state;
private int step_cnt;
private Map<String,Object> bp;
-
+
protected boolean exited;
public TCFActionStepOut(TCFLaunch launch, IRunControl.RunControlContext ctx) {
super(launch, ctx.getID());
this.ctx = ctx;
}
-
+
protected abstract TCFDataCache<TCFContextState> getContextState();
protected abstract TCFDataCache<?> getStackTrace();
protected abstract TCFDataCache<IStackTrace.StackTraceContext> getStackFrame();
protected abstract int getStackFrameIndex();
-
+
public void run() {
if (exited) return;
if (state == null) {
@@ -114,7 +114,7 @@ public abstract class TCFActionStepOut extends TCFAction implements IRunControl.
exit(new Exception("Step out is not supported"));
}
}
-
+
protected void exit(Throwable error) {
if (exited) return;
if (bp != null) {
diff --git a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java
index f262faa2b..0d4a28ff0 100644
--- a/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java
+++ b/plugins/org.eclipse.tm.tcf.debug/src/org/eclipse/tm/internal/tcf/debug/actions/TCFActionStepOver.java
@@ -23,7 +23,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl
private final boolean src_step;
private final IRunControl rc = launch.getService(IRunControl.class);
private final IBreakpoints bps = launch.getService(IBreakpoints.class);
-
+
private IRunControl.RunControlContext ctx;
private TCFDataCache<TCFContextState> state;
private TCFDataCache<TCFSourceRef> line_info;
@@ -32,21 +32,21 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl
private BigInteger pc1;
private int step_cnt;
private Map<String,Object> bp;
-
+
protected boolean exited;
-
+
public TCFActionStepOver(TCFLaunch launch, IRunControl.RunControlContext ctx, boolean src_step) {
super(launch, ctx.getID());
this.ctx = ctx;
this.src_step = src_step;
}
-
+
protected abstract TCFDataCache<TCFContextState> getContextState();
protected abstract TCFDataCache<TCFSourceRef> getLineInfo();
protected abstract TCFDataCache<?> getStackTrace();
protected abstract TCFDataCache<IStackTrace.StackTraceContext> getStackFrame();
protected abstract int getStackFrameIndex();
-
+
public void run() {
if (exited) return;
if (state == null) {
@@ -212,7 +212,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl
exit(new Exception("Step over is not supported"));
}
}
-
+
protected void exit(Throwable error) {
if (exited) return;
if (bp != null) {
@@ -270,7 +270,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl
exit(null);
}
}
-
+
private boolean isSameLine(ILineNumbers.CodeArea x, ILineNumbers.CodeArea y) {
if (x == null || y == null) return false;
if (x.start_line != y.start_line) return false;
@@ -278,7 +278,7 @@ public abstract class TCFActionStepOver extends TCFAction implements IRunControl
if (x.file != y.file && (x.file == null || !x.file.equals(y.file))) return false;
return true;
}
-
+
private boolean isMyBreakpoint(String pc, String reason) {
if (bp == null) return false;
if (pc == null) return false;

Back to the top