[Lldb-commits] [PATCH] D60648: [lldb] [lit/SymbolFile] Avoid -nostdlib in target-symbols-add-unwind.test
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Apr 13 01:14:54 PDT 2019
mgorny created this revision.
mgorny added reviewers: labath, zturner, krytarowski.
Do not use -nostdlib in target-symbols-add-unwind.test. NetBSD uses
startup files to provide obligatory ELF notes in executables,
and therefore using -nostdlib requires providing specially tailored
input. Otherwise, kernel rejects the result as invalid executable.
The replacement was suggested by Pavel Labath.
https://reviews.llvm.org/D60648
Files:
lldb/lit/SymbolFile/Inputs/target-symbols-add-unwind.c
lldb/lit/SymbolFile/target-symbols-add-unwind.test
Index: lldb/lit/SymbolFile/target-symbols-add-unwind.test
===================================================================
--- lldb/lit/SymbolFile/target-symbols-add-unwind.test
+++ lldb/lit/SymbolFile/target-symbols-add-unwind.test
@@ -4,23 +4,23 @@
# UNSUPPORTED: system-windows, system-darwin
# RUN: cd %T
-# RUN: %clang %S/Inputs/target-symbols-add-unwind.c -nostdlib -g \
+# RUN: %clang %S/Inputs/target-symbols-add-unwind.c -g \
# RUN: -fno-unwind-tables -o target-symbols-add-unwind.debug
# RUN: llvm-objcopy --strip-debug target-symbols-add-unwind.debug \
# RUN: target-symbols-add-unwind.stripped
# RUN: %lldb target-symbols-add-unwind.stripped -s %s -o quit | FileCheck %s
process launch --stop-at-entry
-image show-unwind -n _start
-# CHECK-LABEL: image show-unwind -n _start
+image show-unwind -n main
+# CHECK-LABEL: image show-unwind -n main
# CHECK-NOT: debug_frame UnwindPlan:
target symbols add -s target-symbols-add-unwind.stripped target-symbols-add-unwind.debug
# CHECK-LABEL: target symbols add
# CHECK: symbol file {{.*}} has been added to {{.*}}
-image show-unwind -n _start
-# CHECK-LABEL: image show-unwind -n _start
+image show-unwind -n main
+# CHECK-LABEL: image show-unwind -n main
# CHECK: debug_frame UnwindPlan:
# CHECK-NEXT: This UnwindPlan originally sourced from DWARF CFI
# CHECK-NEXT: This UnwindPlan is sourced from the compiler: yes.
Index: lldb/lit/SymbolFile/Inputs/target-symbols-add-unwind.c
===================================================================
--- lldb/lit/SymbolFile/Inputs/target-symbols-add-unwind.c
+++ lldb/lit/SymbolFile/Inputs/target-symbols-add-unwind.c
@@ -1 +1 @@
-void _start() {}
+int main() {}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60648.195004.patch
Type: text/x-patch
Size: 1695 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190413/d1fc717d/attachment.bin>
More information about the lldb-commits
mailing list