Changeset b78f8ae in rtems-testing


Ignore:
Timestamp:
May 12, 2010, 7:30:55 PM (9 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, 8895273c193787f84c4585a10f6d6aceb3b25dc4
Children:
ef4b3ae
Parents:
770f86e
Message:

2010-05-12 Joel Sherrill <joel.sherrill@…>

  • covoar.cc: Process single executable file name differently.
Location:
rtems-coverage
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtems-coverage/ChangeLog

    r770f86e rb78f8ae  
     12010-05-12      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * covoar.cc: Process single executable file name differently.
     4
    152010-05-12      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • rtems-coverage/covoar.cc

    r770f86e rb78f8ae  
    4141const char*                          explanations = NULL;
    4242char*                                progname;
    43 bool                                 singleExecutable = false;
    4443const char*                          symbolsFile = NULL;
    4544const char*                          target = NULL;
     
    146145  int                                            i;
    147146  int                                            opt;
     147  const char*                                    singleExecutable = NULL;
    148148
    149149  CoverageConfiguration = new Configuration::FileReader(Options);
     
    156156  while ((opt = getopt(argc, argv, "1:e:c:E:f:s:T:vC:O:")) != -1) {
    157157    switch (opt) {
    158       case '1':
    159         singleExecutable = true;
    160         executableInfo = new Coverage::ExecutableInfo( optarg );
    161         executablesToAnalyze.push_back( executableInfo );
    162         break;
    163       case 'e':
    164         executableExtension = optarg;
    165         break;
    166       case 'c':
    167          coverageFileExtension = optarg;
    168          break;
    169       case 'C':
    170          CoverageConfiguration->processFile( optarg );
    171          break;
     158      case 'C': CoverageConfiguration->processFile( optarg ); break;
     159      case '1': singleExecutable = optarg;       break;
     160      case 'e': executableExtension = optarg;    break;
     161      case 'c': coverageFileExtension = optarg;  break;
    172162      case 'E': explanations          = optarg;  break;
    173163      case 's': symbolsFile           = optarg;  break;
     
    182172  }
    183173
     174  // Do not trust any arguments until after this point.
    184175  check_configuration();
     176
     177  // XXX We need to verify that all of the needed arguments are non-NULL.
    185178
    186179  // If a single executable was specified, process the remaining
    187180  // arguments as coverage file names.
    188181  if (singleExecutable) {
     182    executableInfo = new Coverage::ExecutableInfo( singleExecutable );
     183    executablesToAnalyze.push_back( executableInfo );
    189184    for (i=optind; i < argc; i++) {
    190185      coverageFileName = argv[i];
Note: See TracChangeset for help on using the changeset viewer.