avxjudge: adjust regex for matching function names

Golang binaries have been observed to contain function names with many
other ASCII characters not captured by the previous regex.

Adjust that regex by permitting arbitrary characters for the function
name component of the line (between the ` <` and `>:`) and declaring the
expected content for the rest of the line.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2022-06-07 11:28:49 -07:00
committed by Thiago Macieira
parent 603f8d2354
commit b573085227

View File

@@ -239,7 +239,7 @@ def process_objdump_line(records:RecordKeeper, line:str, verbose:int, quiet:int)
records.function_record.instructions += 1
match = re.search("\<([a-zA-Z0-9_@\.\-]+)\>\:", line)
match = re.search(r'^[0-9a-f]+ <(.+)>:$', line)
if match:
records.function_record.name = match.group(1)