From a2b984bdcc70a3bca1367a7d9e4a1001aaa93b81 Mon Sep 17 00:00:00 2001 From: Joakim Bech Date: Fri, 15 Dec 2017 14:34:56 +0100 Subject: [PATCH] scripts: update regular expression in symbolize.py Update the regular expression finding the call stack addresses to match the new trace format. Signed-off-by: Joakim Bech Reviewed-by: Jens Wiklander Reviewed-by: Etienne Carriere --- scripts/symbolize.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/scripts/symbolize.py b/scripts/symbolize.py index 89538f7d0b7..77f842f703f 100755 --- a/scripts/symbolize.py +++ b/scripts/symbolize.py @@ -35,10 +35,13 @@ import sys TA_UUID_RE = re.compile(r'Status of TA (?P[0-9a-f\-]+)') -TA_INFO_RE = re.compile(': arch: (?P\w+) ' +TA_INFO_RE = re.compile(' arch: (?P\w+) ' 'load address: (?P0x[0-9a-f]+)') CALL_STACK_RE = re.compile('Call stack:') -STACK_ADDR_RE = re.compile(r': (?P0x[0-9a-f]+)') + +# This gets the address from lines looking like this: +# E/TC:0 0x001044a8 +STACK_ADDR_RE = re.compile(r'[UEIDFM]/T[AC]:.*(?P0x[0-9a-f]+)') ABORT_ADDR_RE = re.compile('-abort at address (?P0x[0-9a-f]+)') REGION_RE = re.compile('region [0-9]+: va (?P0x[0-9a-f]+) ' 'pa 0x[0-9a-f]+ size (?P0x[0-9a-f]+)')