Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lldb/include/lldb/Utility/LLDBLog.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ enum class LLDBLog : Log::MaskType {
OnDemand = Log::ChannelFlag<31>,
Source = Log::ChannelFlag<32>,
Disassembler = Log::ChannelFlag<33>,
LLVM_MARK_AS_BITMASK_ENUM(Disassembler),
InstrumentationRuntime = Log::ChannelFlag<34>,
LLVM_MARK_AS_BITMASK_ENUM(InstrumentationRuntime),
};

LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,11 @@ bool ReportRetriever::NotifyBreakpointHit(ProcessSP process_sp,
return false;

StructuredData::ObjectSP report = RetrieveReportData(process_sp);
if (!report || report->GetType() != lldb::eStructuredDataTypeDictionary)
if (!report || report->GetType() != lldb::eStructuredDataTypeDictionary) {
LLDB_LOGF(GetLog(LLDBLog::InstrumentationRuntime),
"ReportRetriever::RetrieveReportData() failed");
return false;
}

std::string description = FormatDescription(report);

Expand Down
3 changes: 3 additions & 0 deletions lldb/source/Utility/LLDBLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ static constexpr Log::Category g_categories[] = {
{{"disassembler"},
{"log disassembler related activities"},
LLDBLog::Disassembler},
{{"instrumentation-runtime"},
{"log instrumentation runtime plugin related activities"},
LLDBLog::InstrumentationRuntime},
};

static Log::Channel g_log_channel(g_categories,
Expand Down
Loading