Skip to content

Commit 720a4c7

Browse files
authored
[lldb] Fix DW_OP_piece-O3 test on AArch64 Windows (#117336)
Making a breakpoint on a line causes an error on aarch64-pc-windows. This patch changes the test so that a breakpoint can be made on a function name. #117168
1 parent b8eef18 commit 720a4c7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// RUN: %clang_host -O3 -gdwarf %s -o %t
99
// RUN: %lldb %t \
10-
// RUN: -o "b 25" \
10+
// RUN: -o "b done" \
1111
// RUN: -o "r" \
1212
// RUN: -o "p/x array[2]" \
1313
// RUN: -b | FileCheck %s
@@ -17,10 +17,10 @@
1717

1818
static char array[5] = {0, 1, 2, 3, 4};
1919

20-
void func() __attribute__((noinline));
21-
void func() { ++array[2]; };
20+
int done() __attribute__((noinline));
21+
int done() { return array[2]; };
2222

2323
int main(void) {
24-
func();
25-
return 0;
24+
++array[2];
25+
return done();
2626
}

0 commit comments

Comments
 (0)