[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 11 14:50:03 PDT 2025
================
@@ -0,0 +1,45 @@
+import lldb
+
+class FacadeExample:
+ def __init__(self, bkpt, extra_args, dict):
+ self.bkpt = bkpt
+ self.extra_args = extra_args
+ self.base_sym = None
+ self.facade_locs = []
+ self.facade_locs_desc = []
+ self.cur_facade_loc = 1
+
+ self.sym_name = extra_args.GetValueForKey("symbol").GetStringValue(100)
+ self.num_locs = extra_args.GetValueForKey("num_locs").GetIntegerValue(5)
+ self.loc_to_miss = extra_args.GetValueForKey("loc_to_miss").GetIntegerValue(10000)
+
+ def __callback__(self, sym_ctx):
----------------
jimingham wrote:
`__callback__` was what I called the "resolver do your work" function in ScriptedBreakpointResolvers. This part isn't new. It's documented in python-reference.rst and has been in place for a while now. I don't think we can change it.
Anyway, that's not germane to this patch in particular, and it's big enough already...
https://github.com/llvm/llvm-project/pull/158128
More information about the lldb-commits
mailing list