From 513d2e953c0dd7dc65ccff53b12be03bb4d9e448 Mon Sep 17 00:00:00 2001 From: Jason Hiser <jdhiser@gmail.com> Date: Wed, 17 Jul 2019 11:21:03 -0400 Subject: [PATCH] working lib unwind test --- examples/unwind/doit.sh | 5 ++--- examples/unwind/unc.c | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 examples/unwind/doit.sh diff --git a/examples/unwind/doit.sh b/examples/unwind/doit.sh old mode 100644 new mode 100755 index 94c4d2630..92fb5f286 --- a/examples/unwind/doit.sh +++ b/examples/unwind/doit.sh @@ -4,15 +4,14 @@ function main() { set -e set -x - g++ unc.c -o unc.exe + sudo apt-get install libunwind-dev -y + g++ unc.c -o unc.exe -lunwind $PSZ unc.exe unc-zipr.exe --tempdir unc-temp ./unc.exe ./unc-zipr.exe rm -rf unc.exe unc-zipr.exe unc-temp - - } main "$@" diff --git a/examples/unwind/unc.c b/examples/unwind/unc.c index 786f0590d..e48a483b0 100644 --- a/examples/unwind/unc.c +++ b/examples/unwind/unc.c @@ -1,3 +1,5 @@ +#include <stdio.h> + #define UNW_LOCAL_ONLY #include <libunwind.h> -- GitLab