I am trying parse a map file that is generated by gcc, for function addresses. There is a possible solution here(python), but it’s not working for me.
I am trying to understand the solution provided. It has got two complex regular expressions..
m = re.search('^\[([0-9 ]+)\]\s+(.+)\s*$',line )
m = re.search('^([0-9A-Fx]+)\s+([0-9A-Fx]+)\s+(\[([ 0-9]+)\]|\w+)\s+(.*?)\s*$', line)
Can any one explain me what is the RE searching for ?
Is there any other working solution to get function addresses from gcc produced mapfile ?
1 Answer