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

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 22 10:43:06 PST 2025


================
@@ -99,11 +99,8 @@ def test_api(self):
         (target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
             self, "// break here", lldb.SBFileSpec("main.cpp")
         )
-        frame = thread.GetSelectedFrame()
         num_hidden = 0
-        for i in range(1, thread.GetNumFrames()):
-            thread.SetSelectedFrame(i)
-            frame = thread.GetSelectedFrame()
----------------
kastiglione wrote:

this code didn't need to set the selected frame, it only needs to inspect whether a frame is hidden (which can be done without selecting it).

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


More information about the lldb-commits mailing list