diff --git a/coverage-tool/coverage-reporting/intermediate_layer.py b/coverage-tool/coverage-reporting/intermediate_layer.py index 794c7a428289fa1322bd846bb3c06006b250789d..2d11824aa0a48a993deb2263c455596c26fcb35a 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)