From dd01d9aadb6107075c1c2254a2de0670a4d2f0ed Mon Sep 17 00:00:00 2001 From: Muhammad Omair Javaid Date: Wed, 29 Jun 2022 13:34:36 +0400 Subject: [PATCH] Fix TestCommandScript.py for Arm/Windows TestCommandScript.py fails on Arm/Windows due following issues: https://llvm.org/pr56288 https://llvm.org/pr56292 LLDB fails to skip prologue and also step over library function or nodebug functions fails due to PDB/DWARF mismatch. This patch replace function breakpoint with line breakpoint so that we can expect LLDB to stop on desired line. Also replace dwarf with PDB debug info for this test only. --- lldb/test/API/commands/command/script/Makefile | 2 ++ lldb/test/API/commands/command/script/TestCommandScript.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lldb/test/API/commands/command/script/Makefile b/lldb/test/API/commands/command/script/Makefile index 99998b2..c9a35c8 100644 --- a/lldb/test/API/commands/command/script/Makefile +++ b/lldb/test/API/commands/command/script/Makefile @@ -1,3 +1,5 @@ CXX_SOURCES := main.cpp +DEBUG_INFO_FLAG := -g + include Makefile.rules diff --git a/lldb/test/API/commands/command/script/TestCommandScript.py b/lldb/test/API/commands/command/script/TestCommandScript.py index 6f36947..756cb4a 100644 --- a/lldb/test/API/commands/command/script/TestCommandScript.py +++ b/lldb/test/API/commands/command/script/TestCommandScript.py @@ -113,7 +113,7 @@ class CmdPythonTestCase(TestBase): self.expect("longwait", substrs=['Done; if you saw the delays I am doing OK']) - self.runCmd("b main") + self.runCmd("break set -f main.cpp -l 48") self.runCmd("run") self.runCmd("mysto 3") self.expect("frame variable array", -- 2.7.4