1*a9fa9459Szrj /* objdump.h 2*a9fa9459Szrj Copyright (C) 2011-2016 Free Software Foundation, Inc. 3*a9fa9459Szrj 4*a9fa9459Szrj This file is part of GNU Binutils. 5*a9fa9459Szrj 6*a9fa9459Szrj This program is free software; you can redistribute it and/or modify 7*a9fa9459Szrj it under the terms of the GNU General Public License as published by 8*a9fa9459Szrj the Free Software Foundation; either version 3, or (at your option) 9*a9fa9459Szrj any later version. 10*a9fa9459Szrj 11*a9fa9459Szrj This program is distributed in the hope that it will be useful, 12*a9fa9459Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 13*a9fa9459Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14*a9fa9459Szrj GNU General Public License for more details. 15*a9fa9459Szrj 16*a9fa9459Szrj You should have received a copy of the GNU General Public License 17*a9fa9459Szrj along with this program; if not, write to the Free Software 18*a9fa9459Szrj Foundation, 51 Franklin Street - Fifth Floor, Boston, 19*a9fa9459Szrj MA 02110-1301, USA. */ 20*a9fa9459Szrj 21*a9fa9459Szrj struct objdump_private_option 22*a9fa9459Szrj { 23*a9fa9459Szrj /* Option name. */ 24*a9fa9459Szrj const char *name; 25*a9fa9459Szrj 26*a9fa9459Szrj /* TRUE if the option is selected. Automatically set and cleared by 27*a9fa9459Szrj objdump. */ 28*a9fa9459Szrj unsigned int selected; 29*a9fa9459Szrj }; 30*a9fa9459Szrj 31*a9fa9459Szrj struct objdump_private_desc 32*a9fa9459Szrj { 33*a9fa9459Szrj /* Help displayed for --help. */ 34*a9fa9459Szrj void (*help)(FILE *stream); 35*a9fa9459Szrj 36*a9fa9459Szrj /* Return TRUE if these options can be applied to ABFD. */ 37*a9fa9459Szrj int (*filter)(bfd *abfd); 38*a9fa9459Szrj 39*a9fa9459Szrj /* Do the actual work: display whatever is requested according to the 40*a9fa9459Szrj options whose SELECTED field is set. */ 41*a9fa9459Szrj void (*dump)(bfd *abfd); 42*a9fa9459Szrj 43*a9fa9459Szrj /* List of options. Terminated by a NULL name. */ 44*a9fa9459Szrj struct objdump_private_option *options; 45*a9fa9459Szrj }; 46*a9fa9459Szrj /* ELF32_AVR specific target. */ 47*a9fa9459Szrj extern const struct objdump_private_desc objdump_private_desc_elf32_avr; 48*a9fa9459Szrj 49*a9fa9459Szrj /* XCOFF specific target. */ 50*a9fa9459Szrj extern const struct objdump_private_desc objdump_private_desc_xcoff; 51*a9fa9459Szrj 52*a9fa9459Szrj /* Mach-O specific target. */ 53*a9fa9459Szrj extern const struct objdump_private_desc objdump_private_desc_mach_o; 54