Author: jingham Date: Wed Aug 10 19:15:28 2016 New Revision: 278305 URL: http://llvm.org/viewvc/llvm-project?rev=278305&view=rev Log: dlopen & dlclose can't throw C++ or ObjC exceptions, so don't do the extra work of setting & deleting the breakpoints to watch for this.
<rdar://problem/27780214> Modified: lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp Modified: lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp?rev=278305&r1=278304&r2=278305&view=diff ============================================================================== --- lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp (original) +++ lldb/trunk/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp Wed Aug 10 19:15:28 2016 @@ -882,6 +882,7 @@ PlatformPOSIX::EvaluateLibdlExpression(l expr_options.SetIgnoreBreakpoints(true); expr_options.SetExecutionPolicy(eExecutionPolicyAlways); expr_options.SetLanguage(eLanguageTypeC_plus_plus); + expr_options.SetTrapExceptions(false); // dlopen can't throw exceptions, so don't do the work to trap them. expr_options.SetTimeoutUsec(2000000); // 2 seconds Error expr_error; _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits