lenary wrote: > I didn't realize that the riscv instructions had a scheme for indicating > their lengths, very convenient.
It "doesn't". LLVM objdump implements the scheme described in the spec, but for >32-bit instructions, that scheme is not ratified so it could change in the future (the note about this is there but easy to miss). That said, Qualcomm's custom instructions have adopted the unratified scheme for 48-bit instructions. > ... is this something that could be formatted from the SBInstructions in > `fdis`? ... > I haven't looked at the contents of the SBInstruction to see if this is > straightforward or if there are things like the comment field that are > missing, but it's my first thought for accomplishing this. IIRC, there's nothing to that provides the raw encoding bytes to pass off to another disassembler. Maybe I missed it, or it's not documented? That said, it would be great not to have to re-implement all of the disassemble command's argument handling, which looks fairly complex to me. https://github.com/llvm/llvm-project/pull/145793 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits