summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2013-10-08 21:49:02 +0000
committerEnrico Granata <egranata@apple.com>2013-10-08 21:49:02 +0000
commit347c2aa3e3b29440a0f3ae389ca9f2dbe9a99c6a (patch)
tree60c6e2a41e5af1569be84602b4d11de690b5c05b /lldb/source/Target
parent3c593d63a1d0d750ddbec841ff96fcbd2906b18a (diff)
downloadbcm5719-llvm-347c2aa3e3b29440a0f3ae389ca9f2dbe9a99c6a.tar.gz
bcm5719-llvm-347c2aa3e3b29440a0f3ae389ca9f2dbe9a99c6a.zip
<rdar://problem/14028923>
Implement SBTarget::CreateValueFromAddress() with a behavior equivalent to SBValue::CreateValueFromAddress() (but without the need to grab an SBValue first just as a starting point to make up another SBValue out of whole cloth) llvm-svn: 192239
Diffstat (limited to 'lldb/source/Target')
-rw-r--r--lldb/source/Target/ExecutionContext.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/lldb/source/Target/ExecutionContext.cpp b/lldb/source/Target/ExecutionContext.cpp
index 8b5731e8028..7a8b60189bc 100644
--- a/lldb/source/Target/ExecutionContext.cpp
+++ b/lldb/source/Target/ExecutionContext.cpp
@@ -241,7 +241,15 @@ ExecutionContext::GetAddressByteSize() const
return sizeof(void *);
}
-
+lldb::ByteOrder
+ExecutionContext::GetByteOrder() const
+{
+ if (m_target_sp && m_target_sp->GetArchitecture().IsValid())
+ m_target_sp->GetArchitecture().GetByteOrder();
+ if (m_process_sp)
+ m_process_sp->GetByteOrder();
+ return lldb::endian::InlHostByteOrder();
+}
RegisterContext *
ExecutionContext::GetRegisterContext () const
OpenPOWER on IntegriCloud