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:
parent
3166c6d9c6
commit
942081ec6c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user