[Lldb-commits] [PATCH] D100206: [lldb] [llgs client] Support minimal fork/vfork handling

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sat Apr 24 08:56:59 PDT 2021


mgorny updated this revision to Diff 340286.
mgorny added a comment.

Merged D100541 <https://reviews.llvm.org/D100541> and client fork/vfork stop infos from D100208 <https://reviews.llvm.org/D100208> into this one. Included `fork-events+` and `vfork-events+` in client qSupported.

In other words, this is a complete commit that moves fork/vfork handling from server to client. qSupported enables Process plugins to start emitting fork/vfork stop reasons. The stop handler triggers `DidFork()` and `DidVFork()` handlers in gdb-remote process plugin, that send detach packet with the specific PID.

The functionality is covered by existing tests in test/Shell/Subprocess.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100206/new/

https://reviews.llvm.org/D100206

Files:
  lldb/include/lldb/Target/Process.h
  lldb/include/lldb/Target/StopInfo.h
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
  lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
  lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
  lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
  lldb/source/Target/StopInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100206.340286.patch
Type: text/x-patch
Size: 11811 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210424/e4e5a0ad/attachment-0001.bin>


More information about the lldb-commits mailing list