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:
xuxingliang 2025-01-10 23:16:38 +08:00 committed by archer
parent 1577fe3160
commit c319863834

View file

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