Changeset 6fb1409 in rtems-tools for linkers/rld-config.cpp


Ignore:
Timestamp:
Sep 8, 2014, 10:20:41 PM (7 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 5, master
Children:
b7ad4a2
Parents:
2126ea7
Message:

rtems-tld: Add entry and exit trace support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/rld-config.cpp

    r2126ea7 r6fb1409  
    4343    }
    4444
    45     const record&
    46     section::get_record (const std::string& name) const
     45    bool
     46    section::has_record (const std::string& name) const
    4747    {
    4848      for (records::const_iterator ri = recs.begin ();
     
    5151      {
    5252        if ((*ri).name == name)
     53          return true;
     54      }
     55      return false;
     56    }
     57
     58    const record&
     59    section::get_record (const std::string& name) const
     60    {
     61      for (records::const_iterator ri = recs.begin ();
     62           ri != recs.end ();
     63           ++ri)
     64      {
     65        if ((*ri).name == name)
    5366          return *ri;
    5467      }
    5568
    56       throw error ("not found", "config record: " + this->name + '/' + name);
     69      throw rld::error ("not found", "config record: " + this->name + '/' + name);
    5770    }
    5871
Note: See TracChangeset for help on using the changeset viewer.