Skip to content

Commit 942081e

Browse files
W-Maixiaoxiang781216
authored andcommitted
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>
1 parent 3166c6d commit 942081e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tools/minidumpserver.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -699,11 +699,10 @@ def auto_parse_log_file(logfile):
699699
start = False
700700
for line in f.readlines():
701701
line = line.strip()
702-
if (
703-
"up_dump_register" in line
704-
or "dump_stack" in line
705-
or "stack_dump" in line
706-
):
702+
if len(line) == 0:
703+
continue
704+
705+
if "up_dump_register" in line or "stack" in line:
707706
start = True
708707
else:
709708
if start:

0 commit comments

Comments
 (0)