[Lldb-commits] [lldb] r251084 - Log information about sections that didn't make it into the target's memory.
Sean Callanan via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 22 17:39:09 PDT 2015
Author: spyffe
Date: Thu Oct 22 19:39:09 2015
New Revision: 251084
URL: http://llvm.org/viewvc/llvm-project?rev=251084&view=rev
Log:
Log information about sections that didn't make it into the target's memory.
Modified:
lldb/trunk/source/Expression/IRExecutionUnit.cpp
Modified: lldb/trunk/source/Expression/IRExecutionUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRExecutionUnit.cpp?rev=251084&r1=251083&r2=251084&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRExecutionUnit.cpp (original)
+++ lldb/trunk/source/Expression/IRExecutionUnit.cpp Thu Oct 22 19:39:09 2015
@@ -432,6 +432,13 @@ IRExecutionUnit::GetRunnableInfo(Error &
my_extractor.PutToLog(log, 0, my_buffer.GetByteSize(), record.m_process_address, 16, DataExtractor::TypeUInt8);
}
}
+ else
+ {
+ record.dump(log);
+
+ DataExtractor my_extractor ((const void*)record.m_host_address, record.m_size, lldb::eByteOrderBig, 8);
+ my_extractor.PutToLog(log, 0, record.m_size, record.m_host_address, 16, DataExtractor::TypeUInt8);
+ }
}
}
@@ -883,12 +890,13 @@ IRExecutionUnit::AllocationRecord::dump
if (!log)
return;
- log->Printf("[0x%llx+0x%llx]->0x%llx (alignment %d, section ID %d)",
+ log->Printf("[0x%llx+0x%llx]->0x%llx (alignment %d, section ID %d, name %s)",
(unsigned long long)m_host_address,
(unsigned long long)m_size,
(unsigned long long)m_process_address,
(unsigned)m_alignment,
- (unsigned)m_section_id);
+ (unsigned)m_section_id,
+ m_name.c_str());
}
More information about the lldb-commits
mailing list