Changeset 5519a63 in rtems-tools


Ignore:
Timestamp:
Aug 19, 2021, 8:30:33 PM (3 months ago)
Author:
Ryan Long <ryan.long@…>
Branches:
master
Children:
0acb4d0
Parents:
234c19e
git-author:
Ryan Long <ryan.long@…> (08/19/21 20:30:33)
git-committer:
Joel Sherrill <joel@…> (10/08/21 13:58:32)
Message:

rld-rapp.cpp: Add catch for exception

CID 1471643: Uncaught exception

Closes #4502

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemstoolkit/rld-rap.cpp

    r234c19e r5519a63  
    725725    {
    726726      if (rld::verbose () >= RLD_VERBOSE_FULL_DEBUG)
    727         std::cout << "rap:section-merge: " << sec.name
    728                   << " size=" << sec.size ()
    729                   << " offset=" << sec.offset
    730                   << " " << obj.obj.name ().full ()  << std::endl;
     727        try
     728        {
     729          std::cout << "rap:section-merge: " << sec.name
     730                    << " size=" << sec.size ()
     731                    << " offset=" << sec.offset
     732                    << " " << obj.obj.name ().full ()  << std::endl;
     733        }
     734        catch ( rld::error re )
     735        {
     736          std::cerr << "error: "
     737                    << re.where << ": " << re.what
     738                    << std::endl;
     739        }
    731740    }
    732741
Note: See TracChangeset for help on using the changeset viewer.