From cf7c20392b15946fa202909ff815625cb33d36d3 Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Tue, 5 May 2015 13:39:53 +0200 Subject: TCF Debugger: Disassembly view can get unresponsive on context change The disassembly view handles a debug context change only after any pending request is completed. The TCFDisassemblyBackend did not reset the update pending flag when a request got invalid due to a debug context change. This could make the view unresponsive waiting for the completion of the pending request. --- .../eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java index 438a52244..7dceea73a 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java +++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/disassembly/TCFDisassemblyBackend.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2014 Wind River Systems, Inc. and others. + * Copyright (c) 2010, 2015 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 @@ -265,7 +265,6 @@ public class TCFDisassemblyBackend extends AbstractDisassemblyBackend { else if (!done) { done = true; /* Don't call setUpdatePending() if pending state was reset by the view */ - if (context_cnt != fContextCount) return; if (!fCallback.getUpdatePending()) return; fCallback.setUpdatePending(false); } -- cgit v1.2.3