mirror of
https://github.com/clearlinux/clr-avx-tools.git
synced 2026-05-13 10:23:43 +00:00
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:
committed by
Thiago Macieira
parent
603f8d2354
commit
b573085227
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user