[Lldb-commits] [lldb] [lldb] Add --provider option to thread backtrace (PR #181071)

Leandro Lupori via lldb-commits lldb-commits at lists.llvm.org
Fri Apr 10 13:58:56 PDT 2026


================
@@ -13,11 +13,17 @@
 class FrameProviderPassThroughPrefixTestCase(TestBase):
     NO_DEBUG_INFO_TESTCASE = True
 
+    # The frame list IDs used by 'bt --provider' are internal sequential IDs:
+    # 0 = base unwinder, 1 = first provider, 2 = second provider, etc.
+    # These are NOT the descriptor IDs returned by RegisterScriptedFrameProvider.
+    UNWINDER_FRAME_LIST_ID = 0
+    FIRST_PROVIDER_FRAME_LIST_ID = 1
+    SECOND_PROVIDER_FRAME_LIST_ID = 2
+
     def setUp(self):
         TestBase.setUp(self)
         self.source = "main.c"
 
-    @expectedFailureAll(oslist=["linux"], archs=["arm$"])
----------------
luporl wrote:

This is the test that is failing on lldb-arm-ubuntu.

```
FAIL: LLDB (/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang-arm) :: test_pass_through_with_prefix (TestFrameProviderPassThroughPrefix.FrameProviderPassThroughPrefixTestCase)
Log Files:
 - /home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/lldb-test-build.noindex/functionalities/scripted_frame_provider/pass_through_prefix/TestFrameProviderPassThroughPrefix/Failure_test_pass_through_with_prefix.log
PASS: LLDB (/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang-arm) :: test_provider_receives_parent_frames (TestFrameProviderPassThroughPrefix.FrameProviderPassThroughPrefixTestCase)
======================================================================
FAIL: test_pass_through_with_prefix (TestFrameProviderPassThroughPrefix.FrameProviderPassThroughPrefixTestCase)
    Test that a provider can read every frame from its parent list and
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/tcwg-buildbot/worker/lldb-arm-ubuntu/llvm-project/lldb/test/API/functionalities/scripted_frame_provider/pass_through_prefix/TestFrameProviderPassThroughPrefix.py", line 75, in test_pass_through_with_prefix
    self.assertEqual(
AssertionError: 4 != 7 : Frame count should be unchanged (pass-through provider)
Config=arm-/home/tcwg-buildbot/worker/lldb-arm-ubuntu/build/bin/clang
----------------------------------------------------------------------
```

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


More information about the lldb-commits mailing list