diff options
Diffstat (limited to 'lldb/source/Target/ThreadPlanCallFunction.cpp')
| -rw-r--r-- | lldb/source/Target/ThreadPlanCallFunction.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lldb/source/Target/ThreadPlanCallFunction.cpp b/lldb/source/Target/ThreadPlanCallFunction.cpp index 0336a9daf10a..a9f774aa6109 100644 --- a/lldb/source/Target/ThreadPlanCallFunction.cpp +++ b/lldb/source/Target/ThreadPlanCallFunction.cpp @@ -21,6 +21,7 @@ #include "lldb/Target/Target.h" #include "lldb/Target/Thread.h" #include "lldb/Target/ThreadPlanRunToAddress.h" +#include "lldb/Utility/LLDBLog.h" #include "lldb/Utility/Log.h" #include "lldb/Utility/Stream.h" @@ -46,7 +47,7 @@ bool ThreadPlanCallFunction::ConstructorSetup( if (!abi) return false; - Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_STEP)); + Log *log = GetLog(LLDBLog::Step); SetBreakpoints(); @@ -143,7 +144,7 @@ ThreadPlanCallFunction::~ThreadPlanCallFunction() { } void ThreadPlanCallFunction::ReportRegisterState(const char *message) { - Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_STEP)); + Log *log = GetLog(LLDBLog::Step); if (log && log->GetVerbose()) { StreamString strm; RegisterContext *reg_ctx = GetThread().GetRegisterContext().get(); @@ -166,7 +167,7 @@ void ThreadPlanCallFunction::ReportRegisterState(const char *message) { } void ThreadPlanCallFunction::DoTakedown(bool success) { - Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_STEP)); + Log *log = GetLog(LLDBLog::Step); if (!m_valid) { // Don't call DoTakedown if we were never valid to begin with. @@ -242,8 +243,7 @@ Vote ThreadPlanCallFunction::ShouldReportStop(Event *event_ptr) { } bool ThreadPlanCallFunction::DoPlanExplainsStop(Event *event_ptr) { - Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_STEP | - LIBLLDB_LOG_PROCESS)); + Log *log(GetLog(LLDBLog::Step | LLDBLog::Process)); m_real_stop_info_sp = GetPrivateStopInfo(); // If our subplan knows why we stopped, even if it's done (which would @@ -382,7 +382,7 @@ void ThreadPlanCallFunction::DidPush() { bool ThreadPlanCallFunction::WillStop() { return true; } bool ThreadPlanCallFunction::MischiefManaged() { - Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_STEP)); + Log *log = GetLog(LLDBLog::Step); if (IsPlanComplete()) { LLDB_LOGF(log, "ThreadPlanCallFunction(%p): Completed call function plan.", @@ -433,7 +433,7 @@ bool ThreadPlanCallFunction::BreakpointsExplainStop() { (m_objc_language_runtime && m_objc_language_runtime->ExceptionBreakpointsExplainStop( stop_info_sp))) { - Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_STEP)); + Log *log = GetLog(LLDBLog::Step); LLDB_LOGF(log, "ThreadPlanCallFunction::BreakpointsExplainStop - Hit an " "exception breakpoint, setting plan complete."); |
