<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><br>
<div>We have a big-endian target that we debug from LLDB running on Windows through a custom process plugin and communication protocol.</div>
<div><br>
</div>
<div>The target's default byte order is set to eByteOrderBig in 'g_core_definitions' in ArchSpec.cpp.</div>
<div><br>
</div>
<div>Most features work correctly (registers, variables, breakpoints, disassembly), but expressions seem to ignore arch endianness:</div>
<div><br>
</div>
<div>For example:</div>
<div><br>
</div>
<div>
<div>
<div>(lldb) reg read pc</div>
<div>      pc = 0x00400020  arithmetic.elf`main + 32 at main.c:12</div>
<div>(lldb) expr -f hex -- $pc</div>
<div>(unsigned int) $2 = 0x20004000</div>
<div>(lldb)</div>
</div>
</div>
<div><br>
</div>
<div>Has this scenario (big-endian target and little-endian host) been tested/used ?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>-Philippe</div>
</div>
</body>
</html>