Skip to content

Conversation

@DavidSpickett
Copy link
Collaborator

link.exe discards DWARF information. Other linkers on non-Windows do not.

Uses the same solution as TestFrameFunctionInlined.test.

This test was failing with the native PDB plugin but shouldn't have been using PDB anyway (see #114906). Passes with DWARF and lld.

link.exe discards DWARF information. Other linkers on non-Windows
do not.

Uses the same solution as TestFrameFunctionInlined.test.

This test was failing with the native PDB plugin but shouldn't have
been using PDB anyway (see llvm#114906). Passes with DWARF and lld.
@llvmbot
Copy link
Member

llvmbot commented Sep 1, 2025

@llvm/pr-subscribers-lldb

Author: David Spickett (DavidSpickett)

Changes

link.exe discards DWARF information. Other linkers on non-Windows do not.

Uses the same solution as TestFrameFunctionInlined.test.

This test was failing with the native PDB plugin but shouldn't have been using PDB anyway (see #114906). Passes with DWARF and lld.


Full diff: https://github.com/llvm/llvm-project/pull/156320.diff

1 Files Affected:

  • (modified) lldb/test/Shell/Settings/TestFrameFormatFunctionReturnObjC.test (+4-1)
diff --git a/lldb/test/Shell/Settings/TestFrameFormatFunctionReturnObjC.test b/lldb/test/Shell/Settings/TestFrameFormatFunctionReturnObjC.test
index 2692c3d9c3e70..55487235ae8cb 100644
--- a/lldb/test/Shell/Settings/TestFrameFormatFunctionReturnObjC.test
+++ b/lldb/test/Shell/Settings/TestFrameFormatFunctionReturnObjC.test
@@ -2,8 +2,11 @@
 # ${function.return-right} in languages that don't implement this frame
 # format variable (in this case Objective-C).
 #
+# link.exe will discard DWARF information.
+# REQUIRES: (system-windows && lld) || !system-windows
+#
 # RUN: split-file %s %t
-# RUN: %clang_host -g -gdwarf %t/main.m -o %t.objc.out
+# RUN: %clang_host -g -gdwarf %t/main.m -o %t.objc.out %if system-windows %{-fuse-ld=lld%}
 # RUN: %lldb -x -b -s %t/commands.input %t.objc.out -o exit 2>&1 \
 # RUN:       | FileCheck %s
 

@DavidSpickett
Copy link
Collaborator Author

There are for sure more tests that should have this restriction, but I don't think we gain much by going through them all. Just fixing this one because it failed when the native PDB plugin was used.

Copy link
Contributor

@Nerixyz Nerixyz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test passes for me on x86 with DIA disabled now 👍

@DavidSpickett DavidSpickett merged commit 4c91627 into llvm:main Sep 1, 2025
11 checks passed
@DavidSpickett DavidSpickett deleted the lldb-func-lld branch September 1, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants