================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to