summaryrefslogtreecommitdiffstats
path: root/lldb/source/Symbol/ObjectFile.cpp
diff options
context:
space:
mode:
authorMatthew Gardiner <mg11@csr.com>2014-09-29 08:02:24 +0000
committerMatthew Gardiner <mg11@csr.com>2014-09-29 08:02:24 +0000
commitf03e6d84bc649ff230b197fb9c2dffaeebd9edef (patch)
treebc5f86fcf3fa13ed82aaaae36a00d6401be32b6c /lldb/source/Symbol/ObjectFile.cpp
parent1779d438bc389f0cb67ecd3d9fed7d13bca7db39 (diff)
downloadbcm5719-llvm-f03e6d84bc649ff230b197fb9c2dffaeebd9edef.tar.gz
bcm5719-llvm-f03e6d84bc649ff230b197fb9c2dffaeebd9edef.zip
Very minimal support 24-bit kalimbas. Vanilla "memory read" for data sections
works, as do breakpoints, run and pause, display zeroth frame. See http://reviews.llvm.org/D5503 for a fuller description of the changes in this commit. llvm-svn: 218596
Diffstat (limited to 'lldb/source/Symbol/ObjectFile.cpp')
-rw-r--r--lldb/source/Symbol/ObjectFile.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Symbol/ObjectFile.cpp b/lldb/source/Symbol/ObjectFile.cpp
index 11b54007120..0e24a2e3549 100644
--- a/lldb/source/Symbol/ObjectFile.cpp
+++ b/lldb/source/Symbol/ObjectFile.cpp
@@ -458,6 +458,9 @@ ObjectFile::CopyData (lldb::offset_t offset, size_t length, void *dst) const
size_t
ObjectFile::ReadSectionData (const Section *section, lldb::offset_t section_offset, void *dst, size_t dst_len) const
{
+ assert(section);
+ section_offset *= section->GetTargetByteSize();
+
// If some other objectfile owns this data, pass this to them.
if (section->GetObjectFile() != this)
return section->GetObjectFile()->ReadSectionData (section, section_offset, dst, dst_len);
OpenPOWER on IntegriCloud