From c8030146ede30263179d59b60235d8c0f642bf3f Mon Sep 17 00:00:00 2001 From: saul-romero-arm Date: Fri, 15 Jan 2021 10:34:06 +0000 Subject: [PATCH] Bugfix in function list matching --- coverage-tool/coverage-reporting/intermediate_layer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coverage-tool/coverage-reporting/intermediate_layer.py b/coverage-tool/coverage-reporting/intermediate_layer.py index 794c7a4..2d11824 100644 --- a/coverage-tool/coverage-reporting/intermediate_layer.py +++ b/coverage-tool/coverage-reporting/intermediate_layer.py @@ -411,6 +411,9 @@ class PostProcessCC(object): block_function_name), block_code, re.DOTALL | re.MULTILINE) if not function_signature_group: continue # Function does not have dwarf signature (sources) + if not block_function_name in function_list: + print("Warning:Function '{}' not found in function list!!!".format(block_function_name)) + continue # Function not found in function list function_list[block_function_name]["sources"] = True block_function_source_file = remove_workspace( function_signature_group[0], prefix) -- GitLab