[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:46: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
----------------
jimingham wrote:

Locations are 1 based, not 0 based.  As I say around here somewhere, going from 1 based locations to 0 based list indices was driving me nuts, so I made all the arrays 1 based by virtue of filling the first element with placeholders...

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


More information about the lldb-commits mailing list