================
@@ -0,0 +1,32 @@
+"""
+Test the 'memory read' command when decoding instruction failures.
+"""
----------------
DavidSpickett wrote:
The same encoding is invalid on AArch64 too but I don't get the error you're
adding, I get:
```
AssertionError: Ran command:
"memory read --format instruction --count 1 `&my_insns[0]`"
Got output:
0xffffe4f9ac8c: <unknown>
```
Which comes from
https://github.com/llvm/llvm-project/blob/b3073470424c9ef4c5f319d3eed4d42170e15cf1/lldb/source/Core/Disassembler.cpp#L835.
Some of the changes in eb6da944af31dd684be3ab2f93f453a3837a72c6 might be
related, though it focused on the disassemble command.
If there's something special about RISC-V where it can fail even harder to
decode (can't detect instruction length for example) then the test can stay
RISC-V specific. I'd still move it to the generic place though.
https://github.com/llvm/llvm-project/pull/164413
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits