Bug ID 37950
Summary ExecutionContext::GetByteOrder() always returns endian::InlHostByteOrder()
Product lldb
Version unspecified
Hardware PC
OS Linux
Status NEW
Severity normal
Priority P
Component All Bugs
Assignee lldb-dev@lists.llvm.org
Reporter ramana.venkat83@gmail.com
CC llvm-bugs@lists.llvm.org
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.