[Lldb-commits] [PATCH] D131075: [lldb] [gdb-remote] Send interrupt packets from async thread

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 3 09:13:40 PDT 2022


mgorny created this revision.
mgorny added reviewers: labath, krytarowski, jingham, emaste.
Herald added a subscriber: arichardson.
Herald added a project: All.
mgorny requested review of this revision.

Refactor the mechanism for sending interrupt packets to send them
from async thread (i.e. the same thread that sends the continue packet
preceding them and that waits for the response), rather than from
the thread requesting the interrupt.  This is going to become especially
important when using the vCtrlC packet as part of the non-stop protocol,
as -- unlike the simple ^c sent in the all-stop mode -- this packet
involves an explicit reply.

Suggested by Pavel Labath in D126614 <https://reviews.llvm.org/D126614>.

Sponsored by: The FreeBSD Foundation


https://reviews.llvm.org/D131075

Files:
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131075.449679.patch
Type: text/x-patch
Size: 5296 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220803/77de0703/attachment.bin>


More information about the lldb-commits mailing list