This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [llgs] Introduce an AppendThreadIDToResponse() helper
ClosedPublic

Authored by mgorny on Jun 21 2022, 11:33 PM.

Details

Summary

Introduce a helper function to append GDB Remote Serial Protocol "thread
IDs", with optional PID in multiprocess mode.

Sponsored by: The FreeBSD Foundation

Diff Detail

Event Timeline

mgorny created this revision.Jun 21 2022, 11:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2022, 11:33 PM
Herald added a subscriber: arichardson. · View Herald Transcript
labath accepted this revision.Jun 22 2022, 11:54 PM
labath added inline comments.
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
4141

This could technically be any Stream object, right?

This revision is now accepted and ready to land.Jun 22 2022, 11:54 PM
mgorny marked an inline comment as done.Jun 23 2022, 2:23 AM
mgorny added inline comments.
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
4141

Right.

mgorny updated this revision to Diff 439286.Jun 23 2022, 2:23 AM
mgorny retitled this revision from [lldb] [llgs] Introduce a AppendThreadIDToResponse() helper to [lldb] [llgs] Introduce an AppendThreadIDToResponse() helper.
mgorny marked an inline comment as done.

Allow any Stream object.

Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 8:21 AM