[Lldb-commits] [lldb] [lldb][test] Skip the frame 0 stack expedite test with an out-of-tree debugserver (PR #216496)
Yao Qi via lldb-commits
lldb-commits at lists.llvm.org
Sat Aug 15 08:58:16 PDT 2026
https://github.com/qiyao created https://github.com/llvm/llvm-project/pull/216496
test_threads_info_expedites_stopped_frame_stack asserts that jThreadsInfo
carries frame 0's stack memory for the stopped thread. debugserver only does
that since b631e0cbd1c9, so a system debugserver sends the backchain alone and
the test fails with "no frame 0 stack memory for stopped thread".
>From 0f3092998f56a7183558f767dcc9f068ba245885 Mon Sep 17 00:00:00 2001
From: Yao Qi <yao_qi at apple.com>
Date: Sat, 15 Aug 2026 10:33:36 +0100
Subject: [PATCH] [lldb][test] Skip the frame 0 stack expedite test with an
out-of-tree debugserver
test_threads_info_expedites_stopped_frame_stack asserts that jThreadsInfo
carries frame 0's stack memory for the stopped thread. debugserver only does
that since b631e0cbd1c9, so a system debugserver sends the backchain alone and
the test fails with "no frame 0 stack memory for stopped thread".
---
.../API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py b/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
index 1f0f9c02e819a..dc0c62bd37502 100644
--- a/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
+++ b/lldb/test/API/tools/lldb-server/TestGdbRemoteThreadsInStopReply.py
@@ -209,6 +209,9 @@ def test_stop_reply_expedites_frame_pointer_backchain(self):
# walks depends on where the backchain terminates.
self.assertLessEqual(len(entries), 2, "expected at most 2 backchain entries")
+ # Frame 0's stack memory is expedited only by a debugserver built from this
+ # tree; an older system debugserver sends the backchain alone.
+ @skipIfOutOfTreeDebugserver
@add_test_categories(["debugserver"])
def test_threads_info_expedites_stopped_frame_stack(self):
"""jThreadsInfo expedites every thread's frame pointer backchain, plus
More information about the lldb-commits
mailing list