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.
pull/9208/head
Kevin Bracey 2018-12-05 15:42:44 +02:00 committed by Cruz Monrreal II
parent 6ff271b322
commit d3610d5d4e
1 changed files with 1 additions and 1 deletions

View File

@ -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)\:.+$')