917 Commits

Author SHA1 Message Date
Chris Johns
cb969f359f misc/tftprpoxy: Correctly scale the protocol timeout
- Fix data decoding

- Fix get MAC call
2021-09-09 18:33:54 +10:00
Chris Johns
87cc56798c tester/zynqmp: Limit the restarts to 3 2021-09-09 18:33:54 +10:00
Ryan Long
6874f94a83 CoverageReaderTSIM.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
ddab7e640a CoverageReaderSkyeye.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
af0c7206bd CoverageReaderRTEMS.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
065b76e615 CoverageReaderQEMU.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
9b7064e733 CoverageMapBase.h: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
f7d850a89d CoverageFactory.h: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
1b32b0059b CoverageMapBase.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
cdbe330aed CoverageFactory.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Ryan Long
32ff9bb296 CoverageReader: Convert to C++ 2021-09-07 14:26:51 -05:00
Ryan Long
8ee4aaa127 CoverageMap.cc: Fix formatting 2021-09-07 14:26:51 -05:00
Chris Johns
9d399df4ef tester/covoar: Fix clang warnings 2021-09-03 15:17:12 +10:00
Chris Johns
f7db89b4f0 tester: Add Versal VCK190 eval board TFTP support 2021-09-03 14:46:19 +10:00
Chris Johns
b4245dd209 tester/covoar: Fix clang compile errors, revert uneeded changes 2021-09-03 14:43:47 +10:00
Ryan Long
2cf693aee9 rld-dwarf.cpp: Initialize member variables
Initialize member variables not listed.

CID 1503019: Uninitialized scalar field.

Closes #4500
2021-09-01 10:31:25 -05:00
Ryan Long
7ccbcd897c GcovData.cc: Initialize gcnoPreamble
CID 1506206: Uninitialized scalar field

Closes #4487
2021-09-01 10:31:25 -05:00
Ryan Long
1d4edfb2ec rtems-exeinfo.cpp: Initialize byteorder
CID 1471637: Uninitialized scalar field

Closes #4499
2021-09-01 10:31:25 -05:00
Ryan Long
00213f48b3 GcovData.cc: Remove ampersands where not needed
Removed some ampersands that were left in on accident.
2021-08-23 14:25:38 -05:00
Ryan Long
f316d1607f TraceWriterQEMU.cc: Remove unterminated string
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
2021-08-20 12:47:02 -05:00
Ryan Long
0ab060ff2c GcovData.cc: Fix out-of-bounds access errors
Adjusted number of bytes to be read, removed length variable

CID 1506208: Out-of-bounds access
CID 1506209: Out-of-bounds access

Closes #4485
2021-08-20 12:47:02 -05:00
Ryan Long
632414dc0f ReportsText.cc: Add ostream_guard
CID 1505940: Not restoring ostream format

Closes #4472
2021-08-13 14:01:45 -05:00
Ryan Long
dc5e1fcdb1 GcovFunctionData.cc: Add ostream_guard
CID 1506205: Not restoring ostream format

Closes #4484
2021-08-13 14:01:45 -05:00
Ryan Long
415a2b629d GcovData.cc: Add ostream_guard
CID 1506202: Not restoring ostream format

Closes #4483
2021-08-13 14:01:45 -05:00
Ryan Long
b887a0ab6e GcovFunctionData:h: Fix formatting 2021-08-10 17:16:49 -05:00
Ryan Long
2b11e36e11 GcovFunctionData.cc: Fix formatting 2021-08-10 17:16:49 -05:00
Ryan Long
8da8ee424c GcovData.h: Fix formatting 2021-08-10 17:16:49 -05:00
Ryan Long
2c436930e0 GcovData.cc: Fix formatting 2021-08-10 17:16:49 -05:00
Ryan Long
f04f5070dd rtems-utils: Change data type definition
Remove typedef of ostream_guard and change datatype of ostream_guards to
have the namespace in the variable declarations.
2021-08-10 17:16:26 -05:00
Ryan Long
c3762cd29c GcovData: Convert to C++
Change C-style code to C++
2021-08-03 15:56:57 -05:00
Ryan Long
a08a5644c4 Remove app_common and all references to it
- Removed the includes of app_common.h
- Removed app_common references in build infrastructure
- Removed app_common.cc and app_common.h
2021-08-03 15:56:53 -05:00
Ryan Long
d607f42d04 app_common: Remove functions and macros
- Moved functions from app_common to the file they are used
- Got rid of FileIsNewer() since it's not being used
- Removed macros
2021-08-03 15:56:53 -05:00
Ryan Long
7f7ad03917 Remove TargetInfo global variable
- 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
2021-08-03 15:56:53 -05:00
Ryan Long
b93e8dd9bd Remove BranchInfoAvailable global variable
- Removed BranchInfoAvailable from app_common
- Created member variable in CoverageReaderBase and ReportsBase and a function
  to get the value of the member variable
2021-08-03 15:56:53 -05:00
Ryan Long
a1d0e5515e Remove SymbolsToAnalyze global 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
2021-08-03 15:56:53 -05:00
Ryan Long
d5178b8dc5 Remove input buffer global variables
- 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
2021-08-03 15:56:53 -05:00
Ryan Long
df75483098 Remove outputDirectory global variable
- 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
2021-08-03 15:56:53 -05:00
Ryan Long
987d912435 Remove projectName global variable
- 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
2021-08-03 15:56:53 -05:00
Ryan Long
283e6fd072 Remove dynamicLibrary global variable
- Replaced dynamicLibrary in app_common with local variables
- Changed data type to string
  - Changed conditionals to reflect this
2021-08-03 15:56:53 -05:00
Ryan Long
c159160424 Remove Verbose global variable
Replaced Verbose in app_common with local variables that are passed
as a parameter into numerous functions
2021-08-03 15:56:53 -05:00
Ryan Long
d566c2f16b Remove objdumpProcessor global variable
- 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
2021-08-03 15:56:53 -05:00
Ryan Long
75111a1b4f ReportsHtml.cc: Initialize lastState_m
When not initialized, an extra code segment would be added to
annotated.html
2021-08-03 15:56:53 -05:00
Ryan Long
0c6f57a25a Remove AllExplanations global variable
- 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*
2021-08-03 15:56:53 -05:00
Ryan Long
df484a50c0 ReportsText.cc: Restore ostream format
CID 1505940: Not restoring ostream format

Save format of stream before changing it, and change it back before returning.

Closes #4472
2021-07-27 13:40:40 -05:00
Ryan Long
f7887ec5c3 ReportsHtml.cc: Restore ostream format
CID 1505939: Not restoring ofstream format

Save format of stream before changing it, and change it back before returning.

Closes #4471
2021-07-27 13:40:40 -05:00
Ryan Long
d417918646 CoverageMapBase.cc: Restore ostream format
CID 1503022: Not restoring ostream format

Save format of stream before changing it, and change it back before returning.

Closes #4470
2021-07-27 13:40:40 -05:00
Ryan Long
e1469279a7 rtems-exeinfo.cpp: Restore ostream format
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
2021-07-27 13:40:40 -05:00
Ryan Long
68348ad39f rtems-utils.h: Create ostream_guard 2021-07-27 13:40:40 -05:00
Alex White
23808864e3 AddressToLineMapper.h: Remove pointer to temporary string
CID 1505281: Pointer to local outside scope

Closes #4473
2021-07-20 13:24:28 -05:00
Ryan Long
74bb938938 ReportsText.h: Fix formatting 2021-07-19 09:41:35 -05:00