Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreutarass2011-05-10 14:18:45 -0400
committereutarass2011-05-10 14:18:45 -0400
commit996c136001830942d34c7ae184eec5d2fbf85ac4 (patch)
tree291a7a731649625736fce0731a1c348feaf09f23
parent31a05b713f494176dd0691035b3a1b42eb88b02d (diff)
downloadorg.eclipse.tcf-996c136001830942d34c7ae184eec5d2fbf85ac4.tar.gz
org.eclipse.tcf-996c136001830942d34c7ae184eec5d2fbf85ac4.tar.xz
org.eclipse.tcf-996c136001830942d34c7ae184eec5d2fbf85ac4.zip
TCF Debugger: fixed: racing between removeListener(fRunControlListener) and fExecContext = null can cause NullPointerException in disassembly back-end event listeners, like containerSuspended().
-rw-r--r--plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/disassembly/TCFDisassemblyBackend.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/disassembly/TCFDisassemblyBackend.java b/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/disassembly/TCFDisassemblyBackend.java
index 8e61ef861..eb1731b00 100644
--- a/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/disassembly/TCFDisassemblyBackend.java
+++ b/plugins/org.eclipse.tm.tcf.cdt.ui/src/org/eclipse/tm/internal/tcf/cdt/ui/disassembly/TCFDisassemblyBackend.java
@@ -292,7 +292,7 @@ public class TCFDisassemblyBackend implements IDisassemblyBackend {
private void addListeners(final TCFNodeExecContext context) {
assert context != null;
- Protocol.invokeLater(new Runnable() {
+ Protocol.invokeAndWait(new Runnable() {
public void run() {
IChannel channel = context.getChannel();
IRunControl rctl = channel.getRemoteService(IRunControl.class);
@@ -308,7 +308,7 @@ public class TCFDisassemblyBackend implements IDisassemblyBackend {
private void removeListeners(final TCFNodeExecContext context) {
assert context != null;
DebugPlugin.getDefault().getLaunchManager().removeLaunchListener(fLaunchesListener);
- Protocol.invokeLater(new Runnable() {
+ Protocol.invokeAndWait(new Runnable() {
public void run() {
IChannel channel = context.getChannel();
IRunControl rctl = channel.getRemoteService(IRunControl.class);

Back to the top