Changeset d991143 in rtems-testing


Ignore:
Timestamp:
Aug 3, 2009, 5:47:17 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
644ed37
Parents:
2b382c4
Message:

2009-08-03 Joel Sherrill <joel.sherrill@…>

Location:
rtems-coverage
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r2b382c4 rd991143  
     12009-08-03      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * CoverageReaderSkyeye.cc, ObjdumpProcessor.cc: Now appears to work OK
     4        on ARM with edb7312.
     5
    162009-08-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • rtems-coverage/CoverageReaderSkyeye.cc

    r2b382c4 rd991143  
    1414#include <stdio.h>
    1515#include <stdlib.h>
     16#include <sys/stat.h>
    1617
    1718#include "skyeye_header.h"
     
    3940    uint8_t        cover;
    4041    prof_header_t  header;
     42    struct stat    statbuf;
     43
     44    /*
     45     *  Verify it has a non-zero size
     46     */
     47    status = stat( file, &statbuf );
     48    if ( status == -1 ) {
     49      fprintf( stderr, "Unable to stat %s\n", file );
     50      exit( -1 );
     51    }
     52
     53    if ( statbuf.st_size == 0 ) {
     54      fprintf( stderr, "%s is 0 bytes long\n", file );
     55      exit( -1 );
     56    }
    4157
    4258    /*
     
    6783    length      = header.prof_end - header.prof_start;
    6884   
     85    #if 0
    6986    fprintf(
    7087      stderr,
     
    7693      (unsigned long) length
    7794    );
     95    #endif
    7896     
    7997    for ( i=0 ; i<length ; i += 8 ) {
  • rtems-coverage/ObjdumpProcessor.cc

    r2b382c4 rd991143  
    9090    // On ARM, there are literal tables at the end of methods.
    9191    // We need to avoid them.
     92    if ( !strncmp( &line[strlen(line)-10], ".byte", 5) )
     93      return true;
     94    if ( !strncmp( &line[strlen(line)-13], ".short", 6) )
     95      return true;
    9296    if ( !strncmp( &line[strlen(line)-16], ".word", 5) )
    9397      return true;
Note: See TracChangeset for help on using the changeset viewer.