Debugger: Ensure correct thread id in history entries

git-svn-id: branches/fixes_1_8@56301 -
This commit is contained in:
mattias 2017-11-06 10:22:43 +00:00
parent 94a1b6749b
commit d7e60bdbcb
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

@ -3122,8 +3122,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;