diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2013-11-06 16:48:53 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2013-11-06 16:48:53 +0000 |
| commit | f21a844f60ae6c74fcf1fddca32461acce3c1ee0 (patch) | |
| tree | 56d79f94966870db1cecd65a7264510a25fd1cba /source/Target/ExecutionContext.cpp | |
| parent | 37d22554be9f5a677dad2a95b7ef22fe59c66a8a (diff) | |
Notes
Diffstat (limited to 'source/Target/ExecutionContext.cpp')
| -rw-r--r-- | source/Target/ExecutionContext.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/source/Target/ExecutionContext.cpp b/source/Target/ExecutionContext.cpp index 8b5731e80280..7a8b60189bc8 100644 --- a/source/Target/ExecutionContext.cpp +++ b/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 |
