From 763ecaa3060272ce614e171d1955ecfc73db92ee Mon Sep 17 00:00:00 2001 From: Joseph Chen Date: Thu, 21 Nov 2019 17:47:22 +0800 Subject: [PATCH] scripts: stacktrace.sh: use grep to filter lines Signed-off-by: Joseph Chen Change-Id: I3817c654f9391dd6b6a216333a3a8c9fc519c0d3 --- scripts/stacktrace.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/stacktrace.sh b/scripts/stacktrace.sh index 70b4dd68e2..5418b8c368 100755 --- a/scripts/stacktrace.sh +++ b/scripts/stacktrace.sh @@ -46,7 +46,7 @@ echo "SYMBOL File: ${SYMBOL_FILE}" echo # Parse PC and LR echo "Call trace:" -sed -n "/: \[\]' | grep [PC,LR] | while read line do echo -n " ${line} " @@ -78,7 +78,7 @@ echo # Parse stack echo "Stack:" -sed -n "/ \[\]' | grep -v [PC,LR] | while read line do echo -n " ${line} "