summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Long <ryan.long@oarcorp.com>2021-11-15 15:19:24 -0500
committerJoel Sherrill <joel@rtems.org>2021-11-30 10:04:42 -0600
commit59ca889149470477955e8842a95f64850dc33101 (patch)
treec3b62e22bf4b4827e2ecf07fa37daf0faa45feac
parent6b31bb03aaf98232a21813c471d0298c170dde60 (diff)
downloadrtems-tools-master.tar.bz2
TraceConverter.cc: Add final catch for exceptionsHEADmaster
CID 1471639: Add catch for exception Closes #4501
-rw-r--r--tester/covoar/TraceConverter.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/tester/covoar/TraceConverter.cc b/tester/covoar/TraceConverter.cc
index 7770b11..4c62b06 100644
--- a/tester/covoar/TraceConverter.cc
+++ b/tester/covoar/TraceConverter.cc
@@ -192,9 +192,19 @@ int main(
}
}
- objdumpProcessor.loadAddressTable( executableInfo, objdumpFile, err );
- log.processFile( logname, objdumpProcessor );
- trace.writeFile( tracefile, &log, verbose );
+ try
+ {
+ objdumpProcessor.loadAddressTable( executableInfo, objdumpFile, err );
+ log.processFile( logname, objdumpProcessor );
+ trace.writeFile( tracefile, &log, verbose );
+ }
+ catch ( rld::error re )
+ {
+ std::cerr << "error: "
+ << re.where << ": " << re.what
+ << std::endl;
+ ec = 10;
+ }
return ec;
}