mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
nxgdb/mm: fix regular expression to parse log
There could be only one space ahead of address. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -190,7 +190,7 @@ def parse_memdump_log(logfile, filters=None) -> Generator[MMNodeDump, None, None
|
||||
with open(logfile) as f:
|
||||
for line in f:
|
||||
match = re.search(
|
||||
r"\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)\s+((?:\s+0x[0-9a-fA-F]+)+)", line
|
||||
r"(\d+)\s+(\d+)\s+(\d+)\s+(\d+)((?:\s+0x[0-9a-fA-F]+)+)", line
|
||||
)
|
||||
if not match:
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user