This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [Process/FreeBSD] Set current thread ID on events
ClosedPublic

Authored by mgorny on Jan 12 2022, 4:57 AM.

Details

Summary

Set the current thread ID to the thread where an event happened.
As a result, e.g. when a signal is delivered to a thread other than
the first one, the respective T packet refers to the signaled thread
rather than the first thread (with no stop reason). While this doesn't
strictly make a difference to the LLDB client, some of the lldb-server
tests rely on that for convenience.

Diff Detail

Event Timeline

mgorny requested review of this revision.Jan 12 2022, 4:57 AM
mgorny created this revision.
labath accepted this revision.Jan 12 2022, 5:10 AM

LG, though I wouldn't say this is just "convenience". I'd say this is the expected behaviour, and it just happens that the lldb client does not mind if we do not do that.

This revision is now accepted and ready to land.Jan 12 2022, 5:10 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2022, 6:40 AM