[Lldb-commits] [lldb] Support disassembling RISC-V proprietary instructions (PR #145793)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 27 07:47:52 PDT 2025


================
@@ -658,8 +658,13 @@ void Instruction::Dump(lldb_private::Stream *s, uint32_t max_opcode_byte_size,
       // the byte dump to be able to always show 15 bytes (3 chars each) plus a
       // space
       if (max_opcode_byte_size > 0)
-        m_opcode.Dump(&ss, max_opcode_byte_size * 3 + 1);
-      else
+        // make RISC-V opcode dump look like llvm-objdump
----------------
DavidSpickett wrote:

If you say instead "Pretty print RISC-V opcodes in the same format that llvm-objdump uses." this hints at the motivation and what keywords to look for in llvm-objdump's source.

https://github.com/llvm/llvm-project/pull/145793


More information about the lldb-commits mailing list