[LLDB] Fix NativePDB/local-variables.cpp for AArch64/Windows

This patch fixes NativePDB/local-variables.cpp test for AArch64 Windows.
There are two changes:
1) Replace function breakpoint with line breakpoint required due to pr56288
2) Adjust "target modules dump ast" test as the output was slightly different
on AArch64/Windows.
This commit is contained in:
Muhammad Omair Javaid 2022-07-12 16:24:08 +05:00
parent 3d475dfeb9
commit 68cc1eeb1d
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
break set -n main
break set -f local-variables.cpp -l 17
run a b c d e f g
p argc
step

View File

@ -22,7 +22,7 @@ int main(int argc, char **argv) {
// CHECK-NEXT: Current executable set to '{{.*}}local-variables.cpp.tmp.exe'
// CHECK-NEXT: (lldb) command source -s 0 '{{.*}}local-variables.lldbinit'
// CHECK-NEXT: Executing commands in '{{.*}}local-variables.lldbinit'.
// CHECK-NEXT: (lldb) break set -n main
// CHECK-NEXT: (lldb) break set -f local-variables.cpp -l 17
// CHECK-NEXT: Breakpoint 1: where = local-variables.cpp.tmp.exe`main + {{.*}} at local-variables.cpp:{{.*}}, address = {{.*}}
// CHECK-NEXT: (lldb) run a b c d e f g
// CHECK-NEXT: Process {{.*}} stopped
@ -158,6 +158,6 @@ int main(int argc, char **argv) {
// CHECK-NEXT: | `-ParmVarDecl {{.*}} argv 'char **'
// CHECK-NEXT: |-FunctionDecl {{.*}} __scrt_common_main_seh 'int ()' static
// CHECK-NEXT: |-FunctionDecl {{.*}} invoke_main 'int ()' inline
// CHECK-NEXT: `-FunctionDecl {{.*}} Function 'int (int, char)'
// CHECK: `-FunctionDecl {{.*}} Function 'int (int, char)'
// CHECK-NEXT: |-ParmVarDecl {{.*}} Param1 'int'
// CHECK-NEXT: `-ParmVarDecl {{.*}} Param2 'char'