DBG: Reset Watches if debugger stops. Issue #16095

git-svn-id: trunk@28490 -
This commit is contained in:
martin 2010-11-26 00:32:45 +00:00
parent 02b1933463
commit 32c1d8856a

View File

@ -6519,8 +6519,9 @@ begin
then begin
ClearOwned;
CancelEvaluation;
if (Debugger.State = dsPause) or (AOldState in [dsRun, dsPause])
then Changed;
end;
if Debugger.State = dsPause then Changed;
end;
procedure TGDBMIWatch.Invalidate;
@ -6593,7 +6594,7 @@ end;
function TGDBMIWatch.GetValue: String;
begin
if (Debugger <> nil)
and (Debugger.State in [dsStop, dsPause])
and (Debugger.State in [dsPause])
and Enabled
then begin
EvaluationNeeded;
@ -6609,7 +6610,7 @@ end;
function TGDBMIWatch.GetTypeInfo: TDBGType;
begin
if (Debugger <> nil)
and (Debugger.State in [dsStop, dsPause])
and (Debugger.State in [dsPause])
and Enabled
then begin
EvaluationNeeded;