[Lldb-commits] [lldb] 720a4c7 - [lldb] Fix DW_OP_piece-O3 test on AArch64 Windows (#117336)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Nov 22 07:30:59 PST 2024
Author: Ilia Kuklin
Date: 2024-11-22T20:30:55+05:00
New Revision: 720a4c70edd0a9815f0e830d8ad4e1c322e404ae
URL: https://github.com/llvm/llvm-project/commit/720a4c70edd0a9815f0e830d8ad4e1c322e404ae
DIFF: https://github.com/llvm/llvm-project/commit/720a4c70edd0a9815f0e830d8ad4e1c322e404ae.diff
LOG: [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
Added:
Modified:
lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
Removed:
################################################################################
diff --git a/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c b/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
index 77ea81f30395f0..75cd4e6a913b9c 100644
--- a/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
+++ b/lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c
@@ -7,7 +7,7 @@
// RUN: %clang_host -O3 -gdwarf %s -o %t
// RUN: %lldb %t \
-// RUN: -o "b 25" \
+// RUN: -o "b done" \
// RUN: -o "r" \
// RUN: -o "p/x array[2]" \
// RUN: -b | FileCheck %s
@@ -17,10 +17,10 @@
static char array[5] = {0, 1, 2, 3, 4};
-void func() __attribute__((noinline));
-void func() { ++array[2]; };
+int done() __attribute__((noinline));
+int done() { return array[2]; };
int main(void) {
- func();
- return 0;
+ ++array[2];
+ return done();
}
More information about the lldb-commits
mailing list