Replaced header.magic with QEMU_TRACE_MAGIC to get rid of "String not
null terminated" Coverity issue.
CID 1506203: String not null terminated
Closes#4486
- Remove TargetInfo from app_common
- Created the targetInfo_m member variable in CoverageReaderBase,
TraceWriterBase, and ObjdumpProcessor
- Made functions to set the value of targetInfo_m
- Removed BranchInfoAvailable from app_common
- Created member variable in CoverageReaderBase and ReportsBase and a function
to get the value of the member variable
- Removed SymbolsToAnalyze from app_common and replaced it with the
symbolsToAnalyze_m member variable in DesiredSymbols, GcovData, and
ObjdumpProcessor
- Added a parameter to constructors to initialize symbolsToAnalyze_m
- Moved the definition of objdumpLine_t out of ObjdumpProcessor to make
it work with DesiredSymbols
- Removed input buffers from app_common and added them as a local variable
to functions where inputBuffer was being used
- Added #define for MAX_LINE_LENGTH in files where it is used
- Changed Explanations::load to use a string instead of a C-string
- Replaced outputDirectory in app_common with a local variable in
covoar()
- Created the outputDirectory_m member variable
- Added parameters to Reports* constructors to initialize
outputDirectory_m and non member functions
- Replaced projectName in app_common with a local variable in covoar()
- Changed datatype to string
- Changed conditionals to reflect this
- Created projectName_m member variable for ReportsBase
- Added parameter to Reports* constructors to initialize projectName_m
- Replaced objdumpProcessor in app_common with a local variable in
TraceConverter.cc and covoar.cc
- Added objdumpProcessor as a parameter for GenerateReports() and
the processFile() member function of TraceReaderBase and its derived
classes
- Changed previous objdumpProcessor member functions calls from pointer
to direct call syntax
- Replaced AllExplanations in app_common with a local variable in covoar()
- Added the allExplanations_m member variable to ReportsBase
- Added a parameter to ReportsBase and its derived classes' constructors
to initialize allExplanations_m
- Added parameter to GenerateReports() to pass the variable from
covoar() to the constructors for Reports*
CID 1503006: Not restoring ostream format
CID 1503007: Not restoring ostream format
Used a variable to store the format of the ostream before any changes,
and copied what was originally there back into the stream before
returning from the function.
Closes#4469