diff options
author | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-08-30 12:21:13 +0000 |
---|---|---|
committer | Tsukasa OI <research_trasio@irq.a4lg.com> | 2022-09-06 08:26:59 +0000 |
commit | f2028892699ded3276246ddec602d6b9f3e7295d (patch) | |
tree | 635c6b7b2377432633dbcc858afcbf40bdae1c9b /binutils/dwarf.c | |
parent | d878bb39e417fa23b8dc62fed916708e776a9b71 (diff) | |
download | gdb-f2028892699ded3276246ddec602d6b9f3e7295d.zip gdb-f2028892699ded3276246ddec602d6b9f3e7295d.tar.gz gdb-f2028892699ded3276246ddec602d6b9f3e7295d.tar.bz2 |
gdb: Add non-enum disassembler options
This is paired with "opcodes: Add non-enum disassembler options".
There is a portable mechanism for disassembler options and used on some
architectures:
- ARC
- Arm
- MIPS
- PowerPC
- RISC-V
- S/390
However, it only supports following forms:
- [NAME]
- [NAME]=[ENUM_VALUE]
Valid values for [ENUM_VALUE] must be predefined in
disasm_option_arg_t.values. For instance, for -M cpu=[CPU] in ARC
architecture, opcodes/arc-dis.c builds valid CPU model list from
include/elf/arc-cpu.def.
In this commit, it adds following format:
- [NAME]=[ARBITRARY_VALUE] (cannot contain "," though)
This is identified by NULL value of disasm_option_arg_t.values
(normally, this is a non-NULL pointer to a NULL-terminated list).
gdb/ChangeLog:
* gdb/disasm.c (set_disassembler_options): Add support for
non-enum disassembler options.
(show_disassembler_options_sfunc): Likewise.
Diffstat (limited to 'binutils/dwarf.c')
0 files changed, 0 insertions, 0 deletions