https://github.com/kuilpd created https://github.com/llvm/llvm-project/pull/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 >From 8ab6044c2b1e54d0788eca39eb96cd64e30f372a Mon Sep 17 00:00:00 2001 From: Ilia Kuklin <ikuk...@accesssoftek.com> Date: Fri, 22 Nov 2024 20:03:42 +0500 Subject: [PATCH] Set a breakpoint on a symbol instead of a line --- lldb/test/Shell/SymbolFile/DWARF/DW_OP_piece-O3.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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(); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits