On Thu, Jul 31, 2025 at 3:21 PM Charlie Jenkins wrote: > On Thu, Jul 31, 2025 at 10:37:16AM +0800, Nelson Chu wrote: > > On Wed, Jul 30, 2025 at 9:09 PM Andreas Schwab wrote: > > > > > Why is that needed? AFAICT, objdump will happily decode any extension > > > without that change. > > > > > > > I guess maybe they are trying to dump an object which writes > > vector instructions by .insn directives, so the elf architecture > attribute > > or mapping symbols won't have v. I will suggest two solutions here > rather > > The goal here is to be able to use the disassembler from inside of > native riscv gdb to dump any instruction. Currently it seems like gdb > will only dump a subset of all instructions, even with the patch you > sent Nelson. Here is an example program: > My patch isn't used to resolve your problem, it just lets assembler and dis-assembler have the same default arch, so people can just update riscv_all_supported_ext. It's probably convenient to be maintained. Nelson