[Lldb-commits] [lldb] dd01d9a - Fix TestCommandScript.py for Arm/Windows

Muhammad Omair Javaid via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 30 06:49:16 PDT 2022


Author: Muhammad Omair Javaid
Date: 2022-06-30T17:48:28+04:00
New Revision: dd01d9aadb6107075c1c2254a2de0670a4d2f0ed

URL: https://github.com/llvm/llvm-project/commit/dd01d9aadb6107075c1c2254a2de0670a4d2f0ed
DIFF: https://github.com/llvm/llvm-project/commit/dd01d9aadb6107075c1c2254a2de0670a4d2f0ed.diff

LOG: 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.

Added: 
    

Modified: 
    lldb/test/API/commands/command/script/Makefile
    lldb/test/API/commands/command/script/TestCommandScript.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/commands/command/script/Makefile b/lldb/test/API/commands/command/script/Makefile
index 99998b20bcb05..c9a35c808f22b 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 6f369470803f9..756cb4a3632f8 100644
--- a/lldb/test/API/commands/command/script/TestCommandScript.py
+++ b/lldb/test/API/commands/command/script/TestCommandScript.py
@@ -113,7 +113,7 @@ def cleanup():
         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",


        


More information about the lldb-commits mailing list