<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/103021>103021</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[lldb-dap] incorrect offsets in assembly view
</td>
</tr>
<tr>
<th>Labels</th>
<td>
lldb,
lldb-dap
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
vogelsgesang
</td>
</tr>
</table>
<pre>
In the `disassemble` call, the `instructionOffset` is treated as if it would be measuring the offset in bytes instead of as instructions ([source code](https://github.com/llvm/llvm-project/blob/2913e71865dfc063a47ddfaf1e2ce07763f69614/lldb/tools/lldb-dap/lldb-dap.cpp#L3913)) this leads to an corrupted disassembly view in VS Code when scrolling
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUkk9vnDAQxT-NuYyyMmMwcODQJFqpUqUeKvXuPwO48uKVx2yUb19BNt322BOM7Pfk-b1nmMO8Eo2ifRbta2W2sqQ83tJMkWdis86VTf59_LpCWQiElj6wYaaLjSS0BGdiFPjyeRpWLnlzJaT1-zQxlf1OYCiZTCEPhiFMEAq8pS16sAQXMrzlsM6HRTpEEFaw74UYdj8yHtJ0SB_uDAJ70T5z2rIjcMmTaF8F9kspVxbqi8CzwPMcyrLZk0sXgecYb5-fp2tOv8gVgWcbkxV4xqFW1NW9bv3kpFam6byfzFQTOpJdp9WkB103h4HfFSWlyPfxyZvrX78nd70KVN_UUCuBg8AByhIYIhnPUBKYFVzKebvuUB5I3-EW6G1f_-cPeEme4G2hFdjlFGNY58qPyg9qMBWNdYeqVV2jdbWMQ287SdpM5B3awVMn_dA3hHqyxjR9FUaU2Mi-VrLHBvXJdQ0qKeuu76yyjRSNpIsJ8bTjOaU8V4F5o7GWSmJdRWMp8tETxA8AKPDlPnysj3uF8njwtdvMopExcOGHZQklHmX7I2pfIaw7CnLlnv6eM_wDpNpyHP872OP9e0D3FW4j_g4AAP__F5j0pA">