From 76e41afd4f1b78e571c86c2f3814f017a8af37cd Mon Sep 17 00:00:00 2001 From: Soumen Ghosh <soumeng@codeaurora.org> Date: Mon, 21 Aug 2017 20:01:48 +0530 Subject: [PATCH] lrdp-v2: vmlinux linux banner timestamp matching with ramdump, modified the string matching example: $6 = 0xffffff900fca <linux_banner> ... Change-Id: I7fd098ea26d7e5c25590aa7c5d312a0545633686 --- linux-ramdump-parser-v2/gdbmi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/linux-ramdump-parser-v2/gdbmi.py b/linux-ramdump-parser-v2/gdbmi.py index 5501c4d..0043f3b 100644 --- a/linux-ramdump-parser-v2/gdbmi.py +++ b/linux-ramdump-parser-v2/gdbmi.py @@ -302,6 +302,10 @@ class GdbMI(object): match = re.search(r'^[$]\d+ = \\"(.*)(\\\\n\\")', result.lines[0]) if match: return match.group(1) + else: + match = re.search(r'^[$]\d+ = 0x[0-9a-fA-F]+ .* \\"(.*)(\\\\n\\")', result.lines[0]) + if match: + return match.group(1) return None -- GitLab