forked from OSchip/llvm-project
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:
parent
ff4282a204
commit
a0560152cb
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue