Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2013-06-21 18:19:01 +0000
committerEugene Tarassov2013-06-21 18:19:01 +0000
commitdbc940779799060018e918f4ac57c2b44c67cf7b (patch)
treee86468c22542be982ee0b8ee032c358175668afa
parentb1c908a208dc81a70bf731c41554dfc8cd9ae94c (diff)
downloadorg.eclipse.tcf-dbc940779799060018e918f4ac57c2b44c67cf7b.tar.gz
org.eclipse.tcf-dbc940779799060018e918f4ac57c2b44c67cf7b.tar.xz
org.eclipse.tcf-dbc940779799060018e918f4ac57c2b44c67cf7b.zip
TCF Debugger: code cleanup
-rw-r--r--plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java15
-rw-r--r--plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java2
2 files changed, 12 insertions, 5 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java
index 1be998e00..a1af6a7c7 100644
--- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java
+++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/TCFBreakpointStatusListener.java
@@ -128,7 +128,8 @@ class TCFBreakpointStatusListener {
else if (!ok && installed.get(id) == cbp) {
installed.remove(id);
decrementInstallCount(cbp);
- } else {
+ }
+ else {
updateTCFStamp(cbp);
}
}
@@ -172,7 +173,9 @@ class TCFBreakpointStatusListener {
cbp.incrementInstallCount();
doUpdateTCFStamp(cbp);
}
- catch (CoreException e) {} // ignore expected race condition with marker deletion
+ catch (CoreException e) {
+ // ignore expected race condition with marker deletion
+ }
return Status.OK_STATUS;
}
};
@@ -191,7 +194,9 @@ class TCFBreakpointStatusListener {
cbp.decrementInstallCount();
doUpdateTCFStamp(cbp);
}
- catch (CoreException e) {} // ignore expected race condition with marker deletion
+ catch (CoreException e) {
+ // ignore expected race condition with marker deletion
+ }
return Status.OK_STATUS;
}
};
@@ -209,7 +214,9 @@ class TCFBreakpointStatusListener {
try {
doUpdateTCFStamp(cbp);
}
- catch (CoreException e) {} // ignore expected race condition with marker deletion
+ catch (CoreException e) {
+ // ignore expected race condition with marker deletion
+ }
return Status.OK_STATUS;
}
};
diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java
index 043682617..0353787cd 100644
--- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java
+++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/model/ElfLoader.java
@@ -57,7 +57,7 @@ public class ElfLoader implements Runnable {
private List<Throwable> errors = new ArrayList<Throwable>();
- private final IRunControl.RunControlListener rc_listener= new IRunControl.RunControlListener() {
+ private final IRunControl.RunControlListener rc_listener = new IRunControl.RunControlListener() {
@Override
public void contextSuspended(String id, String pc, String reason, Map<String, Object> params) {
running.remove(id);

Back to the top