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