commit | a0560152cb934dfcf33138cc707700845df95e67 | [log] [tgz] |
---|---|---|
author | Jason Molenda <jmolenda@apple.com> | Fri Apr 25 00:06:26 2014 +0000 |
committer | Jason Molenda <jmolenda@apple.com> | Fri Apr 25 00:06:26 2014 +0000 |
tree | 2c5d6e2aba70c8e5cae3c8869c0802babfba1090 | |
parent | ff4282a204301a457f3dba6e6517c565de83abdc [diff] |
Only allow on thread to run when calling libBacktraceRecording. Make sure the timeout is set to 0.5s for these. <rdar://problem/16719510> llvm-svn: 207163
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp index 0745f7d..11c197b 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetItemInfoHandler.cpp
@@ -352,6 +352,8 @@ 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)
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp index 47f44a5..444de2d 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetPendingItemsHandler.cpp
@@ -358,6 +358,8 @@ 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)
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp index 70f435c..c9f6e12 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetQueuesHandler.cpp
@@ -363,6 +363,8 @@ options.SetUnwindOnError (true); options.SetIgnoreBreakpoints (true); options.SetStopOthers (true); + options.SetTimeoutUsec(500000); + options.SetTryAllThreads (false); thread.CalculateExecutionContext (exe_ctx); ExecutionResults func_call_ret;
diff --git a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp index 47c883e..2114af6 100644 --- a/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp +++ b/lldb/source/Plugins/SystemRuntime/MacOSX/AppleGetThreadItemInfoHandler.cpp
@@ -355,6 +355,8 @@ 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)