This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Declare private dwarf2read functions static



2001-07-02  Jim Blandy  <jimb@redhat.com>

	* dwarf2read.c (read_comp_unit, sibling_die, dump_die,
	dump_die_list, store_in_ref_table, follow_die_ref): Make these
	static; they're private functions.

Index: gdb/dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.25
diff -c -r1.25 dwarf2read.c
*** gdb/dwarf2read.c	2001/06/08 18:08:03	1.25
--- gdb/dwarf2read.c	2001/07/02 17:40:34
***************
*** 727,733 ****
  static void read_subroutine_type (struct die_info *, struct objfile *,
  				  const struct comp_unit_head *);
  
! struct die_info *read_comp_unit (char *, bfd *, const struct comp_unit_head *);
  
  static void free_die_list (struct die_info *);
  
--- 727,734 ----
  static void read_subroutine_type (struct die_info *, struct objfile *,
  				  const struct comp_unit_head *);
  
! static struct die_info *read_comp_unit (char *, bfd *,
!                                         const struct comp_unit_head *);
  
  static void free_die_list (struct die_info *);
  
***************
*** 756,774 ****
  struct die_info *copy_die (struct die_info *);
  #endif
  
! struct die_info *sibling_die (struct die_info *);
  
! void dump_die (struct die_info *);
  
! void dump_die_list (struct die_info *);
  
! void store_in_ref_table (unsigned int, struct die_info *);
  
  static void dwarf2_empty_hash_tables (void);
  
  static unsigned int dwarf2_get_ref_die_offset (struct attribute *);
  
! struct die_info *follow_die_ref (unsigned int);
  
  static struct type *dwarf2_fundamental_type (struct objfile *, int);
  
--- 757,775 ----
  struct die_info *copy_die (struct die_info *);
  #endif
  
! static struct die_info *sibling_die (struct die_info *);
  
! static void dump_die (struct die_info *);
  
! static void dump_die_list (struct die_info *);
  
! static void store_in_ref_table (unsigned int, struct die_info *);
  
  static void dwarf2_empty_hash_tables (void);
  
  static unsigned int dwarf2_get_ref_die_offset (struct attribute *);
  
! static struct die_info *follow_die_ref (unsigned int);
  
  static struct type *dwarf2_fundamental_type (struct objfile *, int);
  
***************
*** 2899,2905 ****
  
  /* Read a whole compilation unit into a linked list of dies.  */
  
! struct die_info *
  read_comp_unit (char *info_ptr, bfd *abfd,
  		const struct comp_unit_head *cu_header)
  {
--- 2900,2906 ----
  
  /* Read a whole compilation unit into a linked list of dies.  */
  
! static struct die_info *
  read_comp_unit (char *info_ptr, bfd *abfd,
  		const struct comp_unit_head *cu_header)
  {
***************
*** 4716,4722 ****
  
  /* Return sibling of die, NULL if no sibling.  */
  
! struct die_info *
  sibling_die (struct die_info *die)
  {
    int nesting_level = 0;
--- 4717,4723 ----
  
  /* Return sibling of die, NULL if no sibling.  */
  
! static struct die_info *
  sibling_die (struct die_info *die)
  {
    int nesting_level = 0;
***************
*** 5502,5508 ****
  }
  #endif
  
! void
  dump_die (struct die_info *die)
  {
    unsigned int i;
--- 5503,5509 ----
  }
  #endif
  
! static void
  dump_die (struct die_info *die)
  {
    unsigned int i;
***************
*** 5564,5570 ****
      }
  }
  
! void
  dump_die_list (struct die_info *die)
  {
    while (die)
--- 5565,5571 ----
      }
  }
  
! static void
  dump_die_list (struct die_info *die)
  {
    while (die)
***************
*** 5574,5580 ****
      }
  }
  
! void
  store_in_ref_table (unsigned int offset, struct die_info *die)
  {
    int h;
--- 5575,5581 ----
      }
  }
  
! static void
  store_in_ref_table (unsigned int offset, struct die_info *die)
  {
    int h;
***************
*** 5616,5622 ****
    return result;
  }
  
! struct die_info *
  follow_die_ref (unsigned int offset)
  {
    struct die_info *die;
--- 5617,5623 ----
    return result;
  }
  
! static struct die_info *
  follow_die_ref (unsigned int offset)
  {
    struct die_info *die;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]