https://github.com/JDevlieghere created 
https://github.com/llvm/llvm-project/pull/211807

The recognizer reads arguments through $arg1/$arg2, which resolve via argument 
registers. WebAssembly has no argument registers and no ABI plugin, and these 
tests build without debug info, so there is no location to read the arguments 
from and they come back as zero.

>From d3845474db29804b2a7f48954764798dcd910435 Mon Sep 17 00:00:00 2001
From: Jonas Devlieghere <[email protected]>
Date: Fri, 24 Jul 2026 07:23:30 -0700
Subject: [PATCH] [lldb][test] Skip frame-recognizer argument tests on
 WebAssembly

The recognizer reads arguments through $arg1/$arg2, which resolve via
argument registers. WebAssembly has no argument registers and no ABI
plugin, and these tests build without debug info, so there is no location
to read the arguments from and they come back as zero.
---
 lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py 
b/lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py
index 9e3142a691c72..1f943c634df6d 100644
--- a/lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py
+++ b/lldb/test/API/commands/frame/recognizer/TestFrameRecognizer.py
@@ -372,6 +372,7 @@ def test_frame_recognizer_target_specific(self):
             substrs=["frame 0 is recognized by recognizer.MyFrameRecognizer"],
         )
 
+    @skipIfWasm  # $arg1/$arg2 need argument registers, unsupported on 
WebAssembly.
     def test_frame_recognizer_not_only_first_instruction(self):
         self.build()
         exe = self.getBuildArtifact("a.out")

_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to