[Lldb-commits] [lldb] r355435 - Add logging to SBCompileUnit::GetNumLineEntries.
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 5 11:43:56 PST 2019
Author: jmolenda
Date: Tue Mar 5 11:43:56 2019
New Revision: 355435
URL: http://llvm.org/viewvc/llvm-project?rev=355435&view=rev
Log:
Add logging to SBCompileUnit::GetNumLineEntries.
Modified:
lldb/trunk/source/API/SBCompileUnit.cpp
Modified: lldb/trunk/source/API/SBCompileUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBCompileUnit.cpp?rev=355435&r1=355434&r2=355435&view=diff
==============================================================================
--- lldb/trunk/source/API/SBCompileUnit.cpp (original)
+++ lldb/trunk/source/API/SBCompileUnit.cpp Tue Mar 5 11:43:56 2019
@@ -43,10 +43,15 @@ SBFileSpec SBCompileUnit::GetFileSpec()
}
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;
}
More information about the lldb-commits
mailing list