[llvm-branch-commits] [lldb] [lldb] Override UpdateBreakpointSites in ProcessGDBRemote to use MultiBreakpoint (PR #192988)

Jason Molenda via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 28 00:04:26 PDT 2026


================
@@ -6392,3 +6392,195 @@ void ProcessGDBRemote::DidExec() {
   }
   Process::DidExec();
 }
+
+llvm::Error ProcessGDBRemote::UpdateBreakpointSitesNotBatched(
+    const std::map<lldb::BreakpointSiteSP, Process::BreakpointAction>
+        &site_to_action) {
+  llvm::Error joined = llvm::Error::success();
+  for (auto &[site, action] : site_to_action) {
+    llvm::Error error = action == Process::BreakpointAction::Enable
+                            ? DoEnableBreakpointSite(*site)
+                            : DoDisableBreakpointSite(*site);
+    joined = llvm::joinErrors(std::move(joined), std::move(error));
+  }
+  return joined;
+}
+
+static llvm::Expected<StringExtractorGDBRemote>
+SendMultiBreakpointPacket(GDBRemoteCommunicationClient &gdb_comm,
----------------
jasonmolenda wrote:

This seems like something that you could put in GDBRemoteCommunicationClient as a general "send a packet and get an Expected back" method, it doesn't have anything to do with MultiBreakpoint.  but nbd if you feel it's more natural here.  A lot of the methods doing things like this tend to be over in GDBRemoteCommunicationClient.

https://github.com/llvm/llvm-project/pull/192988


More information about the llvm-branch-commits mailing list