DBG: Avoid reading stack when exe has stopped

git-svn-id: trunk@37487 -
This commit is contained in:
martin 2012-06-02 19:56:16 +00:00
parent 4d0137d86b
commit eccbedf9b1

View File

@ -4866,7 +4866,9 @@ begin
FTheDebugger.FInternalStackFrame := 0;
FTheDebugger.FCurrentThreadId := StrToIntDef(List.Values['thread-id'], -1);
FTheDebugger.FInternalThreadId := FTheDebugger.FCurrentThreadId;
FTheDebugger.FCurrentLocation := FrameToLocation(List.Values['frame']);
FTheDebugger.FCurrentLocation.Address := 0;
FTheDebugger.FCurrentLocation.SrcFile := '';
FTheDebugger.FCurrentLocation.SrcFullName := '';
try
Reason := List.Values['reason'];
@ -4893,6 +4895,9 @@ begin
Exit;
end;
// not stopped? Then we should have a location
FTheDebugger.FCurrentLocation := FrameToLocation(List.Values['frame']);
if Reason = 'signal-received'
then begin
ProcessSignalReceived(List);