summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCompileUnit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBCompileUnit.cpp')
-rw-r--r--lldb/source/API/SBCompileUnit.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp
index ef7d4c1d39f..d0476e53258 100644
--- a/lldb/source/API/SBCompileUnit.cpp
+++ b/lldb/source/API/SBCompileUnit.cpp
@@ -43,10 +43,15 @@ SBFileSpec SBCompileUnit::GetFileSpec() const {
}
uint32_t SBCompileUnit::GetNumLineEntries() const {
+ Log *log(lldb_private::GetLogIfAllCategoriesSet(LIBLLDB_LOG_API));
if (m_opaque_ptr) {
LineTable *line_table = m_opaque_ptr->GetLineTable();
- if (line_table)
+ if (line_table) {
+ log->Printf("SBCompileUnit(%p)::GetNumLineEntries() => %d",
+ static_cast<void *>(m_opaque_ptr),
+ (int)line_table->GetSize());
return line_table->GetSize();
+ }
}
return 0;
}
OpenPOWER on IntegriCloud