The extractor contains functions that build the vector of FunctionObject, which contains all the information about the addresses to be injected during the runs.
The informations are extracted from the dwarfdump
and the objdump
files generated by running make objectfile debugee=program_to_be_injected
. Each program has its own directory and dedicated objdump and dwarfdump file.
The dwarfdump file is used to extract the names of the functions to be injected, this happens inside. These function names are then used to extract the addresses from the objdump file.
Functions:
Function name | Description |
---|---|
extractObjects | Main functions that starts the extraction. Gets the vector of FunctionObject from ExtractFunctionNames and returns it. |
ExtractFunctionNames | Extracts the function names from dwarfdump file . The function then calls the ExtractAddresses function |
ExtractAddresses | Extracts the addresses from objdump file given the function name |