Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore the suffix '- <unknown>' in stack-trace-resolve script #546

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 2 additions & 5 deletions intel-sgx/scripts/stack-trace-resolve
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#! /bin/bash


set -e


terminal=
script_name="$(basename ${0})"
stack_pattern="stack backtrace:"
Expand Down Expand Up @@ -50,7 +48,6 @@ err_print()
printf "\n" 1>&2
}


parse_line()
{
local line=$1
Expand All @@ -59,7 +56,7 @@ parse_line()
usage
drain
fi
line=`printf "%s" "${line}" | awk '{$1=$1};1'`
line=`printf "%s" "${line}" | awk '{$1=$1};1' | awk '{ print gensub(/ - <unknown>$/, "", "G") }'`

if [ "${state}" == "waiting_stack" ]; then
echo_opt "${line}"
Expand Down Expand Up @@ -132,7 +129,7 @@ while getopts "h?o:e:f:sr:" opt; do
r)
reset_state="printing"
start_address=$OPTARG
;;
;;
esac
done

Expand Down