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

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Jun 26 09:33:12 PDT 2025


DavidSpickett wrote:

Just doing some googling, mostly people talk about modifying the binutils in the gnu toolchain for custom instructions and rebuilding it.

[This](https://www.ashling.com/wp-content/uploads/PR_CUSTOM_INST_17-FEB-2022.pdf) refers to some XML file, but I can't tell if they're talking about an upstream patch, or their own product based on GDB:
> we have recently worked on a GDB patch to allow these custom instruction mnemonics
> to be defined in an XML file which GDB can read and use to display the instruction (and parameters) in a
> human-readable format.

Might be my search skills, but I only see references to XML for target descriptions in upstream GDB.

Anyway, that's another approach that I guess would require each tool to add an option to load that file. Rather than your proposal which wraps the filter around the tool (kind of, the custom command is still inside of lldb from the user's perspective).

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


More information about the lldb-commits mailing list