[PATCH 1/1] riscv: Add missing disassembler option `max`
Marek Pikula
m.pikula@partner.samsung.com
Tue Mar 25 14:21:25 GMT 2025
On 25.03.2025 15:07, Jan Beulich wrote:
> Before something like this is exposed, shouldn't it first be defined what
> "maximum" here actually means? Even standard extensions already overlap,
> so there isn't an obvious "disassemble everything we know of".
As far as I understand the current behaviour, the disassembler uses the
first match it can find, so in a way it'sa best effort mode. Maybe
providing this information in the `riscv_options` description would be
enough?
> Furthermore I think such an addition would want to come with a doc
> adjustment as well. Sadly RISC-V's -M options look to be entirely
> undocumented at this point. Yet as per above clarifying to the user what
> to expect is quite relevant here.
For me, in terms of documentation, it's enough to see the descriptions
present in `riscv_options` (and thus with `show disassembler-options`
GDB command), but indeed it was hard to find at first. I don't think
that extending documentation is in scope of this patch, but if you wish,
I could work on extending the documentation if you point me where such a
change should happen.
> Jan
More information about the Binutils
mailing list