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
This commit is contained in:
Jason Molenda 2014-04-25 00:06:26 +00:00
parent ff4282a204
commit a0560152cb
4 changed files with 8 additions and 0 deletions

View File

@ -352,6 +352,8 @@ AppleGetItemInfoHandler::GetItemInfo (Thread &thread, uint64_t item, addr_t page
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)

View File

@ -358,6 +358,8 @@ AppleGetPendingItemsHandler::GetPendingItems (Thread &thread, addr_t queue, addr
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)

View File

@ -363,6 +363,8 @@ AppleGetQueuesHandler::GetCurrentQueues (Thread &thread, addr_t page_to_free, ui
options.SetUnwindOnError (true);
options.SetIgnoreBreakpoints (true);
options.SetStopOthers (true);
options.SetTimeoutUsec(500000);
options.SetTryAllThreads (false);
thread.CalculateExecutionContext (exe_ctx);
ExecutionResults func_call_ret;

View File

@ -355,6 +355,8 @@ AppleGetThreadItemInfoHandler::GetThreadItemInfo (Thread &thread, tid_t thread_i
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)