Debugger: Fix crash when viewing extended watch view, while dbg=history is active and selecting a previously not evaluated stack frame.

git-svn-id: trunk@40945 -
This commit is contained in:
martin 2013-04-29 23:13:07 +00:00
parent b5991e8bb6
commit 2d3c09cd6d

View File

@ -742,11 +742,17 @@ begin
end;
Watch:=TCurrentWatch(lvWatches.Selected.Data);
d := Watch.Values[GetThreadId, GetStackframe];
t := d.TypeInfo;
InspectLabel.Caption := Watch.Expression;
d := Watch.Values[GetThreadId, GetStackframe];
if d = nil then begin
InspectMemo.WordWrap := True;
InspectMemo.Text := '<evaluating>';
exit;
end;
t := d.TypeInfo;
if (t <> nil) and (t.Fields <> nil) and (t.Fields.Count > 0) and
(d.DisplayFormat in [wdfDefault, wdfStructure])
then begin