Skip to main content
summaryrefslogtreecommitdiffstats
path: root/dsf
diff options
context:
space:
mode:
authorJonah Graham2016-04-15 11:50:50 -0400
committerJonah Graham2016-04-27 05:23:27 -0400
commit0265ee09a7fe1417acfb043d844bdbbbe71c834d (patch)
treee5a6c25a515120f85dc67638e464673e89b48e29 /dsf
parentd36b9dcdd178164a59c3441bf550cb7f3598890b (diff)
downloadorg.eclipse.cdt-0265ee09a7fe1417acfb043d844bdbbbe71c834d.tar.gz
org.eclipse.cdt-0265ee09a7fe1417acfb043d844bdbbbe71c834d.tar.xz
org.eclipse.cdt-0265ee09a7fe1417acfb043d844bdbbbe71c834d.zip
Bug 491417: fix occasional "..." updates in disassembly
When a viewportChanged event and a setActive event arrived at the same following a debug context change the two event handlers would cancel each other out. Change-Id: I07a8d0ff46e4ea4f4ab682a5311650fca021d75b Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
Diffstat (limited to 'dsf')
-rw-r--r--dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
index 83c2f2c241..6f154c67a1 100644
--- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
+++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/disassembly/DisassemblyPart.java
@@ -1495,7 +1495,8 @@ public abstract class DisassemblyPart extends WorkbenchPart implements IDisassem
*/
@Override
public void viewportChanged(int verticalOffset) {
- if (fDebugSessionId != null && fGotoAddressPending == PC_UNKNOWN && fScrollPos == null && !fUpdatePending && !fRefreshViewPending) {
+ if (fDebugSessionId != null && fGotoAddressPending == PC_UNKNOWN && fScrollPos == null && !fUpdatePending && !fRefreshViewPending
+ && fFocusAddress != PC_UNKNOWN) {
fUpdatePending = true;
final int updateCount = fUpdateCount;
invokeLater(new Runnable() {

Back to the top