[Bug 37950] New: ExecutionContext::GetByteOrder() always returns endian::InlHostByteOrder()

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.

Jonas Devlieghere changed bug 37950

What | Removed | Added |

Comment # 5 on bug 37950 from Jonas Devlieghere

Fixed in r368181