Skip to content

Commit

Permalink
analysis: add all files to source-code (#1430)
Browse files Browse the repository at this point in the history
Signed-off-by: David Korczynski <david@adalogics.com>
  • Loading branch information
DavidKorczynski authored Feb 15, 2024
1 parent 2437366 commit 83ccdf6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/fuzz_introspector/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,12 @@ def dump_debug_files(self):
},
'elements': []
}
# Add the file to all files in project
if source_file not in all_files_in_debug_info:
all_files_in_debug_info[source_file] = {
'source_file': source_file,
'language': 'N/A'
}
if "DW_TAG_typedef" in line:
name = line.split("{")[-1].strip().split(
"}")[0]
Expand All @@ -232,6 +238,12 @@ def dump_debug_files(self):
'source_file'] + current_type['source'][
'source_line']
all_types[hashkey] = current_type
# Add the file to all files in project
if source_file not in all_files_in_debug_info:
all_files_in_debug_info[source_file] = {
'source_file': source_file,
'language': 'N/A'
}
if "- Elem " in line:
# Ensure we have a strcuct
if current_struct is not None:
Expand All @@ -252,6 +264,12 @@ def dump_debug_files(self):
'source_line': source_line,
}
})
# Add the file to all files in project
if source_file not in all_files_in_debug_info:
all_files_in_debug_info[source_file] = {
'source_file': source_file,
'language': 'N/A'
}

if "Global variable: " in line:
sline = line.replace("Global variable: ",
Expand All @@ -270,6 +288,12 @@ def dump_debug_files(self):
'source_line': source_line
}
}
# Add the file to all files in project
if source_file not in all_files_in_debug_info:
all_files_in_debug_info[source_file] = {
'source_file': source_file,
'language': 'N/A'
}

if read_functions:
if "Subprogram:" in line:
Expand Down Expand Up @@ -311,6 +335,12 @@ def dump_debug_files(self):
'source_file': source_file,
'source_line': source_line,
}
# Add the file to all files in project
if source_file not in all_files_in_debug_info:
all_files_in_debug_info[source_file] = {
'source_file': source_file,
'language': 'N/A'
}
if ' - Operand' in line:

# Decipher type
Expand Down

0 comments on commit 83ccdf6

Please sign in to comment.