1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

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>
This commit is contained in:
Jonah Graham 2016-04-15 16:50:50 +01:00
parent d36b9dcdd1
commit 0265ee09a7

View file

@ -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() {