Changeset fb987e8 in rtems-tools for tester/covoar/CoverageMapBase.cc


Ignore:
Timestamp:
May 8, 2018, 5:09:39 AM (14 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
efbf8f0
Parents:
558cab8
git-author:
Chris Johns <chrisj@…> (05/08/18 05:09:39)
git-committer:
Chris Johns <chrisj@…> (06/15/18 05:54:25)
Message:

covoar: Use DWARF to map addresses to source files and lines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tester/covoar/CoverageMapBase.cc

    r558cab8 rfb987e8  
    33 *  @brief CoverageMapBase Implementation
    44 *
    5  *  This file contains the implementation of the functions 
     5 *  This file contains the implementation of the functions
    66 *  which provide a base level of functionality of a CoverageMap.
    77 */
    88
    9 #include <libgen.h>
    109#include <limits.h>
    1110#include <stdio.h>
     
    5251      delete Info;
    5352  }
    54  
     53
    5554  void  CoverageMapBase::Add( uint32_t low, uint32_t high )
    5655  {
     
    6160    RangeList.push_back( range );
    6261  }
    63  
    64   bool CoverageMapBase::determineOffset( 
    65     uint32_t  address, 
     62
     63  bool CoverageMapBase::determineOffset(
     64    uint32_t  address,
    6665    uint32_t *offset
    6766  )const
     
    175174  {
    176175    uint32_t offset;
    177  
     176
    178177    if (determineOffset( address, &offset ) != true)
    179178      return;
     
    185184  {
    186185    uint32_t offset;
    187  
     186
    188187    if (determineOffset( address, &offset ) != true)
    189188      return false;
     
    195194  {
    196195    uint32_t offset;
    197  
     196
    198197    if (determineOffset( address, &offset ) != true)
    199198      return;
     
    205204  {
    206205    uint32_t offset;
    207  
     206
    208207    if (determineOffset( address, &offset ) != true)
    209208      return;
     
    216215    uint32_t offset;
    217216    bool     result;
    218  
     217
    219218    result = true;
    220219
     
    235234      return 0;
    236235
    237     return Info[ offset ].wasExecuted; 
     236    return Info[ offset ].wasExecuted;
    238237  }
    239238
     
    243242  {
    244243    uint32_t offset;
    245  
     244
    246245    if (determineOffset( address, &offset ) != true)
    247246      return;
     
    253252  {
    254253    uint32_t offset;
    255  
     254
    256255    if (determineOffset( address, &offset ) != true)
    257256      return false;
     
    265264  {
    266265    uint32_t offset;
    267  
     266
    268267    if (determineOffset( address, &offset ) != true)
    269268      return;
     
    275274  {
    276275    uint32_t offset;
    277  
     276
    278277    if (determineOffset( address, &offset ) != true)
    279278      return false;
     
    287286  {
    288287    uint32_t offset;
    289  
     288
    290289    if (determineOffset( address, &offset ) != true)
    291290      return;
     
    299298  {
    300299    uint32_t offset;
    301  
     300
    302301    if (determineOffset( address, &offset ) != true)
    303302      return;
     
    309308  {
    310309    uint32_t offset;
    311  
     310
    312311    if (determineOffset( address, &offset ) != true)
    313312      return false;
     
    320319  {
    321320    uint32_t offset;
    322  
     321
    323322    if (determineOffset( address, &offset ) != true)
    324323      return false;
     
    370369
    371370    result = true;
    372  
     371
    373372    if (determineOffset( address, &offset ) != true)
    374373      result = false;
Note: See TracChangeset for help on using the changeset viewer.