[lldb] Move breakpoint hit reset code to Target::CleanupProcess
authorPavel Labath <pavel@labath.sk>
Thu, 29 Sep 2022 14:47:52 +0000 (16:47 +0200)
committerPavel Labath <pavel@labath.sk>
Thu, 6 Oct 2022 15:18:51 +0000 (17:18 +0200)
commit08c4a6795ac40f14d8a4385d28bc4f266ba895f1
treea8e830fbc295bcbc5eea0cedc3c5b10122781dc0
parent8d1de7b34af46a089eb5433c700419ad9b2923ee
[lldb] Move breakpoint hit reset code to Target::CleanupProcess

This ensures it is run regardless of the method we use to initiate the
session (previous version did not handle connects), and it is the same
place that is used for resetting watchpoints.

Differential Revision: https://reviews.llvm.org/D134882
lldb/source/Target/Process.cpp
lldb/source/Target/Target.cpp
lldb/test/API/functionalities/gdb_remote_client/TestProcessConnect.py