[lldb] [gdb-remote client] Remove breakpoints throughout vfork
authorMichał Górny <mgorny@moritz.systems>
Sun, 11 Apr 2021 15:16:43 +0000 (17:16 +0200)
committerMichał Górny <mgorny@moritz.systems>
Wed, 1 Sep 2021 06:16:12 +0000 (08:16 +0200)
commit199344d832c1bed1d75b1db2c1493e5a3e5c5544
tree9738c4584b3a714d32d5a962455684eb7d287d9f
parentff780014b29617c54493a21e3a05cac35e448026
[lldb] [gdb-remote client] Remove breakpoints throughout vfork

Temporarily remove breakpoints for the duration of vfork, in order
to prevent them from triggering in the child process.  Restore them
once the server reports that vfork has finished and it is ready to
resume execution.

Differential Revision: https://reviews.llvm.org/D100267
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
lldb/test/Shell/Subprocess/vfork-follow-parent-softbp.test [new file with mode: 0644]