summaryrefslogtreecommitdiff
path: root/tests/run-backtrace-core-ppc.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2017-04-25 12:41:58 +0200
committerMark Wielaard <mark@klomp.org>2017-05-02 15:25:02 +0200
commit5e6615076a8ad5fad5c70b4ea266042ed7c44d55 (patch)
treee1ee5afd311e71f96f3a5c0f075ef788fec0c7d2 /tests/run-backtrace-core-ppc.sh
parent727a90c38613b728d83a1e6c8aad3c6974047cc9 (diff)
downloadelfutils-5e6615076a8ad5fad5c70b4ea266042ed7c44d55.tar.gz
tests: Add core backtracegen check and regen ppc32 backtrace testfiles.
Add a check to check_core to make sure the backtracegen function is found in the backtrace. This function is in the middle of the backtrace in the main executable and if not found it means the backtrace was incomplete or the frame was skipped (which could happen on a bad frame pointer only unwind). This showed that the ppc32 backtrace test files were missing DWARF CFI for the main executable. Regenerated them to include full CFI. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/run-backtrace-core-ppc.sh')
-rwxr-xr-xtests/run-backtrace-core-ppc.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run-backtrace-core-ppc.sh b/tests/run-backtrace-core-ppc.sh
index 65c92795..555ac352 100755
--- a/tests/run-backtrace-core-ppc.sh
+++ b/tests/run-backtrace-core-ppc.sh
@@ -17,4 +17,13 @@
. $srcdir/backtrace-subr.sh
+# executable generated by:
+#
+# gcc -D_GNU_SOURCE -I. -I.. -I../lib -m32 -pthread -static -g \
+# -o backtrace.ppc.exec backtrace-child.c
+#
+# core generated by:
+#
+# ./backtrace.ppc.exec --gencore
+
check_core ppc