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

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 27 03:46:11 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37950

            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 at lists.llvm.org
          Reporter: ramana.venkat83 at gmail.com
                CC: llvm-bugs at lists.llvm.org

Created attachment 20471
  --> https://bugs.llvm.org/attachment.cgi?id=20471&action=edit
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180627/60b79d4a/attachment.html>


More information about the llvm-bugs mailing list