Add the ability to disable individual log categories, rather
than just the entire log channel. Add checks, where appropriate, to make sure a log channel/category has not been disabled before attempting to write to it. llvm-svn: 117715
This commit is contained in:
@@ -469,7 +469,6 @@ SBThread::RunToAddress (lldb::addr_t addr)
|
||||
SBProcess
|
||||
SBThread::GetProcess ()
|
||||
{
|
||||
Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
|
||||
|
||||
SBProcess process;
|
||||
if (m_opaque_sp)
|
||||
@@ -478,6 +477,7 @@ SBThread::GetProcess ()
|
||||
process.SetProcess(m_opaque_sp->GetProcess().GetTarget().GetProcessSP());
|
||||
}
|
||||
|
||||
Log *log = lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API);
|
||||
if (log)
|
||||
{
|
||||
SBStream sstr;
|
||||
|
||||
Reference in New Issue
Block a user