Debugger: Ensure correct thread id in history entries

git-svn-id: trunk@56252 -
This commit is contained in:
martin 2017-10-31 19:21:03 +00:00
parent 040dbb8a1e
commit 009303069f
2 changed files with 2 additions and 2 deletions

View File

@ -2445,7 +2445,7 @@ procedure TThreads.Add(AThread: TThreadEntry);
begin
FList.Add(AThread.CreateCopy);
if FList.Count = 1 then
FCurrentThreadId := AThread.ThreadId;
FCurrentThreadId := AThread.ThreadId; // TODO: this should never be needed?
end;
procedure TThreads.Remove(AThread: TThreadEntry);

View File

@ -3154,8 +3154,8 @@ begin
for i := 0 to Cmd.Count - 1 do
CurrentThreads.Add(Cmd.Threads[i]);
CurrentThreads.SetValidity(ddsValid);
CurrentThreads.CurrentThreadId := Cmd.CurrentThreadId;
CurrentThreads.SetValidity(ddsValid);
Debugger.FCurrentThreadId := CurrentThreads.CurrentThreadId;
Debugger.FCurrentThreadIdValid := True;
end;