[Lldb-commits] [lldb] r207163 - Only allow on thread to run when calling libBacktraceRecording.
Jason Molenda
jmolenda at apple.com
Thu Apr 24 17:06:26 PDT 2014
Author: jmolenda
Date: Thu Apr 24 19:06:26 2014
New Revision: 207163
URL: http://llvm.org/viewvc/llvm-project?rev=207163&view=rev
Log:
Only allow on thread to run when calling libBacktraceRecording.
Make sure the timeout is set to 0.5s for these.
<rdar://problem/16719510>
Modified:
lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp
lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp
Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp?rev=207163&r1=207162&r2=207163&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp Thu Apr 24 19:06:26 2014
@@ -352,6 +352,8 @@ AppleGetItemInfoHandler::GetItemInfo (Th
options.SetUnwindOnError (true);
options.SetIgnoreBreakpoints (true);
options.SetStopOthers (true);
+ options.SetTimeoutUsec(500000);
+ options.SetTryAllThreads (false);
thread.CalculateExecutionContext (exe_ctx);
if (m_get_item_info_function == NULL)
Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp?rev=207163&r1=207162&r2=207163&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp Thu Apr 24 19:06:26 2014
@@ -358,6 +358,8 @@ AppleGetPendingItemsHandler::GetPendingI
options.SetUnwindOnError (true);
options.SetIgnoreBreakpoints (true);
options.SetStopOthers (true);
+ options.SetTimeoutUsec(500000);
+ options.SetTryAllThreads (false);
thread.CalculateExecutionContext (exe_ctx);
if (m_get_pending_items_function == NULL)
Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp?rev=207163&r1=207162&r2=207163&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp Thu Apr 24 19:06:26 2014
@@ -363,6 +363,8 @@ AppleGetQueuesHandler::GetCurrentQueues
options.SetUnwindOnError (true);
options.SetIgnoreBreakpoints (true);
options.SetStopOthers (true);
+ options.SetTimeoutUsec(500000);
+ options.SetTryAllThreads (false);
thread.CalculateExecutionContext (exe_ctx);
ExecutionResults func_call_ret;
Modified: lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp?rev=207163&r1=207162&r2=207163&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp (original)
+++ lldb/trunk/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp Thu Apr 24 19:06:26 2014
@@ -355,6 +355,8 @@ AppleGetThreadItemInfoHandler::GetThread
options.SetUnwindOnError (true);
options.SetIgnoreBreakpoints (true);
options.SetStopOthers (true);
+ options.SetTimeoutUsec(500000);
+ options.SetTryAllThreads (false);
thread.CalculateExecutionContext (exe_ctx);
if (m_get_thread_item_info_function == NULL)
More information about the lldb-commits
mailing list