Created attachment 20471 [details] Patch 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 endian::InlHostByteOrder(); } As can be seen from the above piece of code, the byte order returned is always endian::InlHostByteOrder(), which is not wrong.
> As can be seen from the above piece of code, the byte order returned is > always endian::InlHostByteOrder(), which is not wrong. always endian::InlHostByteOrder(), which is wrong. :)
can you please upload this patch on Phabricator? Thanks.
Created https://reviews.llvm.org/D48704
I have never run LLDB test suite myself so far and working on getting that up for writing a test case to close the review https://reviews.llvm.org/D48704.
Fixed in r368181