diff options
author | Pavel Labath <labath@google.com> | 2016-12-06 11:24:51 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2016-12-06 11:24:51 +0000 |
commit | 1c59cdf8a34a8c2f5e888b666e009f8ed37396a8 (patch) | |
tree | 681d8bc540c14219bd4db5f93d86eec0da40b1df /lldb/source/Plugins/MemoryHistory | |
parent | d3532d4e7378eb8883fb7a9bd7561b6c9e49f56f (diff) |
Use Timeout<> in EvaluateExpressionOptions class
Diffstat (limited to 'lldb/source/Plugins/MemoryHistory')
-rw-r--r-- | lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp b/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp index 620e839896c..35247edfbd5 100644 --- a/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp +++ b/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp @@ -149,7 +149,7 @@ static void CreateHistoryThreadFromValueObject(ProcessSP process_sp, result.push_back(new_thread_sp); } -#define GET_STACK_FUNCTION_TIMEOUT_USEC 2 * 1000 * 1000 +static constexpr std::chrono::seconds g_get_stack_function_timeout(2); HistoryThreads MemoryHistoryASan::GetHistoryThreads(lldb::addr_t address) { HistoryThreads result; @@ -178,7 +178,7 @@ HistoryThreads MemoryHistoryASan::GetHistoryThreads(lldb::addr_t address) { options.SetTryAllThreads(true); options.SetStopOthers(true); options.SetIgnoreBreakpoints(true); - options.SetTimeoutUsec(GET_STACK_FUNCTION_TIMEOUT_USEC); + options.SetTimeout(g_get_stack_function_timeout); options.SetPrefix(memory_history_asan_command_prefix); options.SetAutoApplyFixIts(false); options.SetLanguage(eLanguageTypeObjC_plus_plus); |