From 942081ec6cdffc0098fdf79408b7cb02ed1710c1 Mon Sep 17 00:00:00 2001 From: xinbingnan Date: Mon, 16 Oct 2023 17:29:07 +0800 Subject: [PATCH] minidumpserver: fix parsing bug stack dump add new region `show stacks`, but this script is not support now this is fixed with adding check condition for all lines contains stack word Signed-off-by: xinbingnan --- tools/minidumpserver.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/minidumpserver.py b/tools/minidumpserver.py index 04e7636222..99e0e30fa8 100755 --- a/tools/minidumpserver.py +++ b/tools/minidumpserver.py @@ -699,11 +699,10 @@ def auto_parse_log_file(logfile): start = False for line in f.readlines(): line = line.strip() - if ( - "up_dump_register" in line - or "dump_stack" in line - or "stack_dump" in line - ): + if len(line) == 0: + continue + + if "up_dump_register" in line or "stack" in line: start = True else: if start: