From f9aca02d5a02f5a83c52fc22c55d333f2546c0a0 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Mon, 2 Jul 2001 17:43:07 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 7 ++++++- gdb/dwarf2read.c | 25 +++++++++++++------------ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 710c7bcc857..28aa211d214 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-07-02 Jim Blandy + + * 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. + 2001-07-01 Mark Elbrecht * coffread.c (coff_symfile_read): Parse DWARF2 info if present. @@ -94,7 +100,6 @@ * coff-solib.c: Include symfile.h and objfiles.h to make OBJF_SHARED visible. ->>>>>>> 1.1391 2001-06-28 Andrew Cagney * configure.in (--enable-gdbmi): Enable by default. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 3d9902c7999..07e15005e13 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -727,7 +727,8 @@ static void read_tag_string_type (struct die_info *, struct objfile *); 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 struct die_info *read_comp_unit (char *, bfd *, + const struct comp_unit_head *); static void free_die_list (struct die_info *); @@ -756,19 +757,19 @@ static char *dwarf_cfi_name (unsigned int); struct die_info *copy_die (struct die_info *); #endif -struct die_info *sibling_die (struct die_info *); +static struct die_info *sibling_die (struct die_info *); -void dump_die (struct die_info *); +static void dump_die (struct die_info *); -void dump_die_list (struct die_info *); +static void dump_die_list (struct die_info *); -void store_in_ref_table (unsigned int, 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 *); -struct die_info *follow_die_ref (unsigned int); +static struct die_info *follow_die_ref (unsigned int); static struct type *dwarf2_fundamental_type (struct objfile *, int); @@ -2899,7 +2900,7 @@ read_base_type (struct die_info *die, struct objfile *objfile) /* Read a whole compilation unit into a linked list of dies. */ -struct die_info * +static struct die_info * read_comp_unit (char *info_ptr, bfd *abfd, const struct comp_unit_head *cu_header) { @@ -4716,7 +4717,7 @@ copy_die (struct die_info *old_die) /* Return sibling of die, NULL if no sibling. */ -struct die_info * +static struct die_info * sibling_die (struct die_info *die) { int nesting_level = 0; @@ -5502,7 +5503,7 @@ dwarf_cfi_name (register unsigned cfi_opc) } #endif -void +static void dump_die (struct die_info *die) { unsigned int i; @@ -5564,7 +5565,7 @@ dump_die (struct die_info *die) } } -void +static void dump_die_list (struct die_info *die) { while (die) @@ -5574,7 +5575,7 @@ dump_die_list (struct die_info *die) } } -void +static void store_in_ref_table (unsigned int offset, struct die_info *die) { int h; @@ -5616,7 +5617,7 @@ dwarf2_get_ref_die_offset (struct attribute *attr) return result; } -struct die_info * +static struct die_info * follow_die_ref (unsigned int offset) { struct die_info *die; -- 2.30.2