From d3610d5d4e7a88f985b78d160aa9d9918024f4e4 Mon Sep 17 00:00:00 2001 From: Kevin Bracey Date: Wed, 5 Dec 2018 15:42:44 +0200 Subject: [PATCH] memap.py: Cope with IAR 8 linker map IAR 8 linker map puts C++14-style apostrophe digit separators in its addresses, such as: .data inited 0x2000'1ff0 0x4 mbed_rtx_idle.o [159] Extend the regex pattern to allow this. --- tools/memap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memap.py b/tools/memap.py index c5a316a998..3691f89ce8 100644 --- a/tools/memap.py +++ b/tools/memap.py @@ -304,7 +304,7 @@ class _ArmccParser(_Parser): class _IarParser(_Parser): RE = re.compile( r'^\s+(.+)\s+(zero|const|ro code|inited|uninit)\s' - r'+0x(\w{8})\s+0x(\w+)\s+(.+)\s.+$') + r'+0x([\'\w]+)\s+0x(\w+)\s+(.+)\s.+$') RE_CMDLINE_FILE = re.compile(r'^#\s+(.+\.o)') RE_LIBRARY = re.compile(r'^(.+\.a)\:.+$')