[Lldb-commits] [lldb] [lldb] Add SBThread.selected_frame property (PR #123981)

via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 23 09:35:08 PST 2025


================
@@ -51,6 +51,12 @@ STRING_EXTENSION_OUTSIDE(SBThread)
                 for idx in range(self.GetStopReasonDataCount())
             ]
 
+        def set_selected_frame(self, frame):
+            if isinstance(frame, SBFrame):
+                self.SetSelectedFrame(frame.idx)
----------------
jimingham wrote:

SetSelectedFrame returns the index of the selected frame.  It should check the thread and if it doesn't match, return LLDB_INVALID_FRAME_ID.


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


More information about the lldb-commits mailing list