summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/IRExecutionUnit.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2015-10-23 00:39:09 +0000
committerSean Callanan <scallanan@apple.com>2015-10-23 00:39:09 +0000
commit44dbf115fe6e38cdd7083b9c15b7a23d5d143a90 (patch)
treef49b8bfbaeda48dad312c2beaccd144b9ecd552b /lldb/source/Expression/IRExecutionUnit.cpp
parent2592fb96c23362579dd88d79c73ce0397d7cd38c (diff)
downloadbcm5719-llvm-44dbf115fe6e38cdd7083b9c15b7a23d5d143a90.tar.gz
bcm5719-llvm-44dbf115fe6e38cdd7083b9c15b7a23d5d143a90.zip
Log information about sections that didn't make it into the target's memory.
llvm-svn: 251084
Diffstat (limited to 'lldb/source/Expression/IRExecutionUnit.cpp')
-rw-r--r--lldb/source/Expression/IRExecutionUnit.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/lldb/source/Expression/IRExecutionUnit.cpp b/lldb/source/Expression/IRExecutionUnit.cpp
index 156a65cf185..8a0066c1c64 100644
--- a/lldb/source/Expression/IRExecutionUnit.cpp
+++ b/lldb/source/Expression/IRExecutionUnit.cpp
@@ -432,6 +432,13 @@ IRExecutionUnit::GetRunnableInfo(Error &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 (Log *log)
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());
}
OpenPOWER on IntegriCloud