X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Fdis-asm.h;h=0532cefa951b2f0fff17483acac8769c0ae343b2;hb=43327b208ec6452c1a6accd40be965cdfa5c86a3;hp=c1746502ca2de39e6936cf117d26f2f7f4aba827;hpb=103ebbc35cc1975442e1e6233207d8d7b2016556;p=deliverable%2Fbinutils-gdb.git diff --git a/include/dis-asm.h b/include/dis-asm.h index c1746502ca..0532cefa95 100644 --- a/include/dis-asm.h +++ b/include/dis-asm.h @@ -1,6 +1,6 @@ /* Interface between the opcode library and its callers. - Copyright (C) 1999-2019 Free Software Foundation, Inc. + Copyright (C) 1999-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -105,14 +105,14 @@ typedef struct disassemble_info unsigned long flags; /* Set if the disassembler has determined that there are one or more relocations associated with the instruction being disassembled. */ -#define INSN_HAS_RELOC (1 << 31) +#define INSN_HAS_RELOC (1u << 31) /* Set if the user has requested the disassembly of data as well as code. */ -#define DISASSEMBLE_DATA (1 << 30) +#define DISASSEMBLE_DATA (1u << 30) /* Set if the user has specifically set the machine type encoded in the mach field of this structure. */ -#define USER_SPECIFIED_MACHINE_TYPE (1 << 29) +#define USER_SPECIFIED_MACHINE_TYPE (1u << 29) /* Set if the user has requested wide output. */ -#define WIDE_OUTPUT (1 << 28) +#define WIDE_OUTPUT (1u << 28) /* Use internally by the target specific disassembly code. */ void *private_data; @@ -325,7 +325,10 @@ extern disassembler_ftype disassembler (enum bfd_architecture arc, /* Amend the disassemble_info structure as necessary for the target architecture. Should only be called after initialising the info->arch field. */ -extern void disassemble_init_for_target (struct disassemble_info * dinfo); +extern void disassemble_init_for_target (struct disassemble_info *); + +/* Tidy any memory allocated by targets, such as info->private_data. */ +extern void disassemble_free_target (struct disassemble_info *); /* Document any target specific options available from the disassembler. */ extern void disassembler_usage (FILE *);