[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:47:21 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)
----------------
medismailben wrote:

I believe you can do this with @kastiglione recent change.

```suggestion
        self.sym_name = str(extra_args.GetValueForKey("symbol"))
        self.num_locs = int(extra_args.GetValueForKey("num_locs"))
        self.loc_to_miss = int(extra_args.GetValueForKey("loc_to_miss"))
```

https://github.com/llvm/llvm-project/pull/158128


More information about the lldb-commits mailing list