[PATCH] TraceConverter.cc: Fix Uncaught exception issue

Chris Johns chrisj at rtems.org
Mon Dec 13 21:03:20 UTC 2021


OK

On 14/12/21 12:47 am, Ryan Long wrote:
> CID 1471639: Uncaught exception
> 
> Closes #4501
> ---
>  tester/covoar/TraceConverter.cc | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)
> 
> diff --git a/tester/covoar/TraceConverter.cc b/tester/covoar/TraceConverter.cc
> index 8e30ae5..2c5330a 100644
> --- a/tester/covoar/TraceConverter.cc
> +++ b/tester/covoar/TraceConverter.cc
> @@ -87,14 +87,30 @@ int main(
>    std::string                         tracefile;
>    std::string                         logname = "/tmp/qemu.log";
>    Coverage::ExecutableInfo*           executableInfo;
> -  rld::process::tempfile              objdumpFile( ".dmp" );
> -  rld::process::tempfile              err( ".err" );
>    Coverage::DesiredSymbols            symbolsToAnalyze;
>    bool                                verbose = false;
>    std::string                         dynamicLibrary;
>    int                                 ec = 0;
>    std::shared_ptr<Target::TargetBase> targetInfo;
>  
> +  try
> +  {
> +    rld::process::tempfile objdumpFile( ".dmp" );
> +  }
> +  catch ( rld::error re )
> +  {
> +    std::cerr << "Failed to make .dmp tempfile " << std::endl;
> +  }
> +
> +  try
> +  {
> +    rld::process::tempfile err( ".err" );
> +  }
> +  catch ( rld::error re )
> +  {
> +    std::cerr << "Failed to make .err tempfile " << std::endl;
> +  }
> +
>    setup_signals();
>  
>     //
> 


More information about the devel mailing list