[Lldb-commits] [lldb] Add a scripted way to re-present a stop location (PR #158128)
Med Ismail Bennani via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 11 13:57:42 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):
----------------
medismailben wrote:
I'm not sure when this `__callback__` gets called. Also, this class implements `__callback__` which is supposed to be a python "dunder" method but I think you meant to implement [`__call__`](https://docs.python.org/3.13/reference/datamodel.html#object.__call__). `__callback__` doesn't exists in the python standard library, so we should either rename this `__call__` or remove the "dunder" if we're making our own callback function.
https://github.com/llvm/llvm-project/pull/158128
More information about the lldb-commits
mailing list