[Lldb-commits] [lldb] r147551 - /lldb/trunk/source/Expression/IRInterpreter.cpp
Sean Callanan
scallanan at apple.com
Wed Jan 4 13:42:46 PST 2012
Author: spyffe
Date: Wed Jan 4 15:42:46 2012
New Revision: 147551
URL: http://llvm.org/viewvc/llvm-project?rev=147551&view=rev
Log:
Added logging to track when the IR interpreter
resolves values in registers.
Modified:
lldb/trunk/source/Expression/IRInterpreter.cpp
Modified: lldb/trunk/source/Expression/IRInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRInterpreter.cpp?rev=147551&r1=147550&r2=147551&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRInterpreter.cpp (original)
+++ lldb/trunk/source/Expression/IRInterpreter.cpp Wed Jan 4 15:42:46 2012
@@ -653,6 +653,16 @@
if (ref_encoder->PutAddress(0, data_region.m_base) == UINT32_MAX)
return Memory::Region();
+ if (log)
+ {
+ log->Printf("Made an allocation for register variable %s", PrintValue(value).c_str());
+ log->Printf(" Data contents : %s", m_memory.PrintData(data_region.m_base, data_region.m_extent).c_str());
+ log->Printf(" Data region : %llx", (unsigned long long)data_region.m_base);
+ log->Printf(" Ref region : %llx", (unsigned long long)ref_region.m_base);
+ if (indirect_variable)
+ log->Printf(" Pointer region : %llx", (unsigned long long)pointer_region.m_base);
+ }
+
if (indirect_variable)
{
DataEncoderSP pointer_encoder = m_memory.GetEncoder(pointer_region);
More information about the lldb-commits
mailing list