================
@@ -931,6 +945,53 @@ void Target::GetBreakpointNames(std::vector<std::string> 
&names) {
   llvm::sort(names);
 }
 
+llvm::Expected<lldb::user_id_t>
+Target::AddBreakpointResolverOverride(llvm::StringRef class_name,
+                                      StructuredData::DictionarySP 
args_data_sp,
+                                      llvm::StringRef description) {
+  if (class_name.empty())
+    return LLDB_INVALID_INDEX64;
+
+  StructuredDataImpl impl;
+  impl.SetObjectSP(args_data_sp);
+
+  ScriptedBreakpointResolverOverride *new_override =
+      new ScriptedBreakpointResolverOverride(*this, std::string(description),
+                                             std::string(class_name), impl);
+  llvm::Error error = new_override->Validate();
----------------
medismailben wrote:

Could you group the classname and the args dictionary into a ScriptedMetadataSP 
? That's how other interfaces do it.

https://github.com/llvm/llvm-project/pull/195392
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to