================
@@ -737,6 +738,11 @@ class LLDB_API SBTarget {
 
   lldb::SBBreakpoint BreakpointCreateBySBAddress(SBAddress &address);
 
+  lldb::SBBreakpoint
+  BreakpointCreateByFileAddress(const SBFileSpec &file_spec, addr_t file_addr,
+                                addr_t offset = 0,
+                                addr_t instructions_offset = 0);
----------------
eronnen wrote:

@labath Yes, the intention is to set a breakpoint in a virtual address that 
relates to the file address in a given module. 

A function like this already exists in `main` in `Target.h` 
([CreateAddressInModuleBreakpoint](https://github.com/llvm/llvm-project/blob/main/lldb/include/lldb/Target/Target.h#L727C22-L727C53))
 although not exported in the public API.

https://github.com/llvm/llvm-project/pull/148061
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to