mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 10:59:29 +02:00
DBG: Avoid reading stack when exe has stopped
git-svn-id: trunk@37487 -
This commit is contained in:
parent
4d0137d86b
commit
eccbedf9b1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user