summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/Target.cpp
diff options
context:
space:
mode:
authorMatthew Gardiner <mg11@csr.com>2014-10-22 07:22:56 +0000
committerMatthew Gardiner <mg11@csr.com>2014-10-22 07:22:56 +0000
commitc928de3e8e95ab02418720b765b2342123ade5b8 (patch)
treebe7a7544734d5488eb64d096f0558f61a84a7e03 /lldb/source/Target/Target.cpp
parent0cf39569bf9e58db2d975fb06d1f94fcd2c648ee (diff)
downloadbcm5719-llvm-c928de3e8e95ab02418720b765b2342123ade5b8.tar.gz
bcm5719-llvm-c928de3e8e95ab02418720b765b2342123ade5b8.zip
Added functions to the C++ API, for the benefit of non-8-bit byte architectures.
New functions to give client applications to tools to discover target byte sizes for addresses prior to ReadMemory. Also added GetPlatform and ReadMemory to the SBTarget class, since they seemed to be useful utilities to have. Each new API has had a test case added. http://reviews.llvm.org/D5867 llvm-svn: 220372
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r--lldb/source/Target/Target.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index 7bfb49f179b..595bcb494e0 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -2284,6 +2284,12 @@ Target::ResolveLoadAddress (addr_t load_addr, Address &so_addr, uint32_t stop_id
}
bool
+Target::ResolveFileAddress (lldb::addr_t file_addr, Address &resolved_addr)
+{
+ return m_images.ResolveFileAddress(file_addr, resolved_addr);
+}
+
+bool
Target::SetSectionLoadAddress (const SectionSP &section_sp, addr_t new_section_load_addr, bool warn_multiple)
{
const addr_t old_section_load_addr = m_section_load_history.GetSectionLoadAddress (SectionLoadHistory::eStopIDNow, section_sp);
OpenPOWER on IntegriCloud