aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-07-02 17:43:07 +0000
committerJim Blandy <jimb@codesourcery.com>2001-07-02 17:43:07 +0000
commitf9aca02d5a02f5a83c52fc22c55d333f2546c0a0 (patch)
treeb37086ae09d86b80eb82c7961e02f47e0e5f9d8b /gdb/dwarf2read.c
parent99a814a1ccdc7b8d4514d1b2862003ee134ce5c1 (diff)
downloadgdb-f9aca02d5a02f5a83c52fc22c55d333f2546c0a0.zip
gdb-f9aca02d5a02f5a83c52fc22c55d333f2546c0a0.tar.gz
gdb-f9aca02d5a02f5a83c52fc22c55d333f2546c0a0.tar.bz2
* 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.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3d9902c..07e15005 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;