Alan Modra
c572eb343a
opcodes: PR 33384 invalid disassembler option message
...
This is the binutils fix for PR 33384. Here we are assuming that no
const char* comma-separated option strings are passed in to
disassemble_info.disassembler_options. That is true for current usage
in gdb and binutils. In fact, there is only one place that passes a
string in read-only memory, gdb/tdep-i386.c:disassembly_flavor, and
that one is a single option.
include/
* dis-asm.h (struct disassemble_info): Comment.
(disassembler_options_cmp, next_disassembler_option),
(FOR_EACH_DISASSEMBLER_OPTION): Delete.
(for_each_disassembler_option): Declare.
opcodes/
* disassemble.c (disassembler_options_cmp): Delete.
(for_each_disassembler_option): New function.
* arc-dis.c (parse_option): Replace disassembler_options_cmp
with strcmp.
(parse_cpu_option): Likewise.
(parse_disassembler_options): Replace FOR_EACH_DISASSEMBLER_OPTION
with for_each_disassembler_option, and extract loop body to..
(arc_parse_option): ..this new function.
* arm-dis.c (parse_arm_disassembler_options): Delete, extracting
loop body to..
(arm_parse_option): ..this new function.
(print_insn): Use for_each_disassembler_option.
* csky-dis.c (parse_csky_dis_options): Delete, extracting loop
body to..
(parse_csky_option): ..this new function.
(print_insn_csky): Use for_each_disassembler_option.
* nfp-dis.c (parse_disassembler_options): Replace
FOR_EACH_DISASSEMBLER_OPTION with for_each_disassembler_option,
and extract loop body to..
(nfp_parse_option): ..this new function. Use opcodes_error_handler
here rather than info->fprintf_func to print error.
* ppc-dis.c (ppc_parse_cpu): Replace disassembler_options_cmp
with strcmp.
(struct ppc_parse_data): New.
(powerpc_init_dialect): Adjust to use new struct. Replace
FOR_EACH_DISASSEMBLER_OPTION with for_each_disassembler_option,
and extract loop body to..
(ppc_parse_option): ..this new function.
2025-10-04 09:39:02 +09:30
..
2025-09-18 11:56:52 +01:00
2025-07-21 18:18:51 +01:00
2025-08-08 11:41:58 +02:00
2025-01-01 18:29:57 +10:30
2025-07-21 18:18:51 +01:00
2025-08-08 11:42:32 +02:00
2025-01-01 18:29:57 +10:30
2025-09-01 15:44:31 +01:00
2025-07-21 18:18:51 +01:00
2025-09-23 19:42:43 +01:00
2025-09-23 19:42:43 +01:00
2025-09-23 19:42:44 +01:00
2025-07-21 18:18:51 +01:00
2025-07-21 18:16:30 +01:00
2025-09-25 12:30:13 +08:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-10-04 09:39:02 +09:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-10-04 09:39:02 +09:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-07-13 08:35:45 +01:00
2025-04-28 19:27:22 +01:00
2025-09-25 12:30:13 +08:00
2025-08-07 22:14:49 +09:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-10-04 09:39:02 +09:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-10-04 09:39:02 +09:30
2025-02-11 14:30:39 +08:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-14 10:30:40 +08:00
2024-06-18 10:52:41 +08:00
2025-01-14 10:30:44 +08:00
2024-12-05 09:57:59 +08:00
2025-01-17 10:17:12 +08:00
2025-01-14 10:30:40 +08:00
2025-08-15 12:21:42 +02:00
2025-08-29 12:11:45 +02:00
2025-08-15 12:21:42 +02:00
2025-07-16 10:43:41 +08:00
2025-08-29 12:11:45 +02:00
2025-05-16 10:32:19 +02:00
2025-08-29 12:11:45 +02:00
2025-06-13 13:46:30 +02:00
2025-08-29 12:11:45 +02:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-03-26 15:49:58 +08:00
2025-04-13 10:45:00 +08:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-07-21 18:18:51 +01:00
2025-09-25 12:30:13 +08:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-27 12:01:20 -08:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-02-22 20:57:15 +00:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-10-04 09:39:02 +09:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-06-14 06:10:57 +01:00
2025-06-14 06:10:57 +01:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-06-21 05:46:12 +01:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-10-04 09:39:02 +09:30
2025-09-02 23:36:42 +00:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-08-01 09:18:15 +02:00
2025-08-20 18:02:49 +08:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-05-07 17:17:10 +02:00
2025-04-09 09:00:48 +02:00
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-07-26 07:50:49 +09:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-01-01 18:29:57 +10:30
2025-07-09 09:35:07 +09:30
2025-07-09 09:35:07 +09:30
2025-01-01 18:29:57 +10:30