Skip to content

Commit 983d0d4

Browse files
committed
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.
1 parent 49a5052 commit 983d0d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/memap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def parse_mapfile(self, file_desc):
304304
class _IarParser(_Parser):
305305
RE = re.compile(
306306
r'^\s+(.+)\s+(zero|const|ro code|inited|uninit)\s'
307-
r'+0x(\w{8})\s+0x(\w+)\s+(.+)\s.+$')
307+
r'+0x([\'\w]+)\s+0x(\w+)\s+(.+)\s.+$')
308308

309309
RE_CMDLINE_FILE = re.compile(r'^#\s+(.+\.o)')
310310
RE_LIBRARY = re.compile(r'^(.+\.a)\:.+$')

0 commit comments

Comments
 (0)