This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 942081ec6c minidumpserver: fix parsing bug
942081ec6c is described below

commit 942081ec6cdffc0098fdf79408b7cb02ed1710c1
Author: xinbingnan <[email protected]>
AuthorDate: Mon Oct 16 17:29:07 2023 +0800

    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 <[email protected]>
---
 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:

Reply via email to