From 886229a1a9d5c4e360956ea5001bf74dcb6c4c99 Mon Sep 17 00:00:00 2001 From: Pawel Piech Date: Tue, 19 Feb 2008 23:46:06 +0000 Subject: [PATCH] [219523] Fixed bug causing the cache to fail if previous command was still in command control's queue. --- .../dd/dsf/debug/service/command/CommandCache.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/command/CommandCache.java b/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/command/CommandCache.java index 96093c215dc..f88c8be7480 100644 --- a/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/command/CommandCache.java +++ b/plugins/org.eclipse.dd.dsf.debug/src/org/eclipse/dd/dsf/debug/service/command/CommandCache.java @@ -274,16 +274,22 @@ public class CommandCache implements ICommandListener } /* - * If we are waiting for this command to complete ( but the command has - * been sent to the debug engine), add this request monitor to list of waiting monitors. + * If we are already waiting for this command to complete, + * add this request monitor to list of waiting monitors. */ - for ( CommandInfo sentCommand : fPendingQCommandsSent ) { if ( sentCommand.equals( cachedCmd )) { sentCommand.getRequestMonitorList().add(genericDone); return; } } + for ( CommandInfo notYetSentCommand : fPendingQCommandsNotYetSent ) { + if ( notYetSentCommand.equals( cachedCmd )) { + notYetSentCommand.getRequestMonitorList().add(genericDone); + return; + } + } + /* * We see if this command can be combined into a coalesced one. The