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 <xinbingnan@xiaomi.com>
This commit is contained in:
xinbingnan 2023-10-16 17:29:07 +08:00 committed by Xiang Xiao
parent 3166c6d9c6
commit 942081ec6c
1 changed files with 4 additions and 5 deletions

View File

@ -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: