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.
This commit is contained in:
Muhammad Omair Javaid 2022-06-29 13:34:36 +04:00
parent 2f20743952
commit dd01d9aadb
2 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
CXX_SOURCES := main.cpp
DEBUG_INFO_FLAG := -g
include Makefile.rules

View File

@ -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",