[Lldb-commits] [lldb] Add a breakpoint override resolver feature to lldb (PR #195392)

via lldb-commits lldb-commits at lists.llvm.org
Tue May 5 15:58:12 PDT 2026


================
@@ -679,6 +680,28 @@ size_t SBTarget::ReadMemory(const SBAddress addr, void *buf, size_t size,
   return bytes_read;
 }
 
+uint64_t SBTarget::AddBreakpointOverride(const char *class_name,
+                                         const char *description,
+                                         SBStructuredData &args_data) {
+  if (TargetSP target_sp = GetSP()) {
+    StructuredDataImpl impl;
+    args_data.CopyImpl(impl);
+    ScriptedBreakpointResolverOverride *new_override =
+        new ScriptedBreakpointResolverOverride(*target_sp.get(),
+                                               std::string(description),
+                                               std::string(class_name), impl);
----------------
jimingham wrote:

Yes, this one can actually get errors in a number of ways (like Python class name not found, etc.) so it should probably take an SBError parameter as well.

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


More information about the lldb-commits mailing list