diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-09 22:46:26 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-10 09:04:15 +1030 |
commit | 103ebbc35cc1975442e1e6233207d8d7b2016556 (patch) | |
tree | 8bb0547dd5e1709b30e6d36fd30215b74ad25bd5 /include | |
parent | 6f0e0752309e3e3016a48db1672e3092c677020c (diff) | |
download | gdb-103ebbc35cc1975442e1e6233207d8d7b2016556.zip gdb-103ebbc35cc1975442e1e6233207d8d7b2016556.tar.gz gdb-103ebbc35cc1975442e1e6233207d8d7b2016556.tar.bz2 |
Use disassemble_info.private_data in place of insn_sets
No cgen target uses private_data. This patch removes a
disassemble_info field that is only used by cgen, and instead uses
private_data. It also removes a macro that is no longer used.
include/
* dis-asm.h (struct disassemble_info): Delete insn_sets.
(INIT_DISASSEMBLE_INFO_NO_ARCH): Don't define.
opcodes/
* cgen-dis.in (print_insn_@arch@): Replace insn_sets with private_data.
* disassemble.c (disassemble_init_for_target): Likewise.
* bpf-dis.c: Regenerate.
* epiphany-dis.c: Regenerate.
* fr30-dis.c: Regenerate.
* frv-dis.c: Regenerate.
* ip2k-dis.c: Regenerate.
* iq2000-dis.c: Regenerate.
* lm32-dis.c: Regenerate.
* m32c-dis.c: Regenerate.
* m32r-dis.c: Regenerate.
* mep-dis.c: Regenerate.
* mt-dis.c: Regenerate.
* or1k-dis.c: Regenerate.
* xc16x-dis.c: Regenerate.
* xstormy16-dis.c: Regenerate.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 5 | ||||
-rw-r--r-- | include/dis-asm.h | 8 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index 42aa17d..7c4fcb8 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2019-12-10 Alan Modra <amodra@gmail.com> + + * dis-asm.h (struct disassemble_info): Delete insn_sets. + (INIT_DISASSEMBLE_INFO_NO_ARCH): Don't define. + 2019-12-05 Jan Beulich <jbeulich@suse.com> * opcode/aarch64.h (AARCH64_FEATURE_CRYPTO): Expand to the diff --git a/include/dis-asm.h b/include/dis-asm.h index b4d5025..c1746502 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -78,11 +78,6 @@ typedef struct disassemble_info enum bfd_endian endian; /* Endianness of code, for mixed-endian situations such as ARM BE8. */ enum bfd_endian endian_code; - /* An arch/mach-specific bitmask of selected instruction subsets, mainly - for processors with run-time-switchable instruction sets. The default, - zero, means that there is no constraint. CGEN-based opcodes ports - may use ISA_foo masks. */ - void *insn_sets; /* Some targets need information about the current section to accurately display insns. If this is NULL, the target disassembler function @@ -394,9 +389,6 @@ extern void init_disassemble_info (struct disassemble_info *dinfo, void *stream, /* For compatibility with existing code. */ #define INIT_DISASSEMBLE_INFO(INFO, STREAM, FPRINTF_FUNC) \ init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC)) -#define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \ - init_disassemble_info (&(INFO), (STREAM), (fprintf_ftype) (FPRINTF_FUNC)) - #ifdef __cplusplus } |