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