diff options
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r-- | gdb/dwarfread.c | 189 |
1 files changed, 53 insertions, 136 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c index c56155e..499c41e 100644 --- a/gdb/dwarfread.c +++ b/gdb/dwarfread.c @@ -576,9 +576,7 @@ static struct type *dwarf_fundamental_type (struct objfile *, int); */ static struct type * -dwarf_fundamental_type (objfile, typeid) - struct objfile *objfile; - int typeid; +dwarf_fundamental_type (struct objfile *objfile, int typeid) { if (typeid < 0 || typeid >= FT_NUM_MEMBERS) { @@ -621,8 +619,7 @@ dwarf_fundamental_type (objfile, typeid) */ static void -set_cu_language (dip) - struct dieinfo *dip; +set_cu_language (struct dieinfo *dip) { switch (dip->at_language) { @@ -690,14 +687,9 @@ set_cu_language (dip) */ void -dwarf_build_psymtabs (objfile, mainline, dbfoff, dbfsize, - lnoffset, lnsize) - struct objfile *objfile; - int mainline; - file_ptr dbfoff; - unsigned int dbfsize; - file_ptr lnoffset; - unsigned int lnsize; +dwarf_build_psymtabs (struct objfile *objfile, int mainline, file_ptr dbfoff, + unsigned int dbfsize, file_ptr lnoffset, + unsigned int lnsize) { bfd *abfd = objfile->obfd; struct cleanup *back_to; @@ -758,11 +750,8 @@ dwarf_build_psymtabs (objfile, mainline, dbfoff, dbfsize, */ static void -read_lexical_block_scope (dip, thisdie, enddie, objfile) - struct dieinfo *dip; - char *thisdie; - char *enddie; - struct objfile *objfile; +read_lexical_block_scope (struct dieinfo *dip, char *thisdie, char *enddie, + struct objfile *objfile) { register struct context_stack *new; @@ -797,8 +786,7 @@ read_lexical_block_scope (dip, thisdie, enddie, objfile) */ static struct type * -lookup_utype (die_ref) - DIE_REF die_ref; +lookup_utype (DIE_REF die_ref) { struct type *type = NULL; int utypeidx; @@ -838,9 +826,7 @@ lookup_utype (die_ref) */ static struct type * -alloc_utype (die_ref, utypep) - DIE_REF die_ref; - struct type *utypep; +alloc_utype (DIE_REF die_ref, struct type *utypep) { struct type **typep; int utypeidx; @@ -886,8 +872,7 @@ alloc_utype (die_ref, utypep) */ static void -free_utypes (dummy) - PTR dummy; +free_utypes (PTR dummy) { free (utypes); utypes = NULL; @@ -913,8 +898,7 @@ free_utypes (dummy) */ static struct type * -decode_die_type (dip) - struct dieinfo *dip; +decode_die_type (struct dieinfo *dip) { struct type *type = NULL; @@ -965,11 +949,8 @@ decode_die_type (dip) */ static struct type * -struct_type (dip, thisdie, enddie, objfile) - struct dieinfo *dip; - char *thisdie; - char *enddie; - struct objfile *objfile; +struct_type (struct dieinfo *dip, char *thisdie, char *enddie, + struct objfile *objfile) { struct type *type; struct nextfield @@ -1163,11 +1144,8 @@ struct_type (dip, thisdie, enddie, objfile) */ static void -read_structure_scope (dip, thisdie, enddie, objfile) - struct dieinfo *dip; - char *thisdie; - char *enddie; - struct objfile *objfile; +read_structure_scope (struct dieinfo *dip, char *thisdie, char *enddie, + struct objfile *objfile) { struct type *type; struct symbol *sym; @@ -1207,8 +1185,7 @@ read_structure_scope (dip, thisdie, enddie, objfile) */ static struct type * -decode_array_element_type (scan) - char *scan; +decode_array_element_type (char *scan) { struct type *typep; DIE_REF die_ref; @@ -1302,9 +1279,7 @@ decode_array_element_type (scan) */ static struct type * -decode_subscript_data_item (scan, end) - char *scan; - char *end; +decode_subscript_data_item (char *scan, char *end) { struct type *typep = NULL; /* Array type we are building */ struct type *nexttype; /* Type of each element (may be array) */ @@ -1384,8 +1359,7 @@ decode_subscript_data_item (scan, end) */ static void -dwarf_read_array_type (dip) - struct dieinfo *dip; +dwarf_read_array_type (struct dieinfo *dip) { struct type *type; struct type *utype; @@ -1449,8 +1423,7 @@ dwarf_read_array_type (dip) */ static void -read_tag_pointer_type (dip) - struct dieinfo *dip; +read_tag_pointer_type (struct dieinfo *dip) { struct type *type; struct type *utype; @@ -1492,8 +1465,7 @@ read_tag_pointer_type (dip) */ static void -read_tag_string_type (dip) - struct dieinfo *dip; +read_tag_string_type (struct dieinfo *dip) { struct type *utype; struct type *indextype; @@ -1564,10 +1536,7 @@ read_tag_string_type (dip) */ static void -read_subroutine_type (dip, thisdie, enddie) - struct dieinfo *dip; - char *thisdie; - char *enddie; +read_subroutine_type (struct dieinfo *dip, char *thisdie, char *enddie) { struct type *type; /* Type that this function returns */ struct type *ftype; /* Function that returns above type */ @@ -1624,11 +1593,8 @@ read_subroutine_type (dip, thisdie, enddie) */ static void -read_enumeration (dip, thisdie, enddie, objfile) - struct dieinfo *dip; - char *thisdie; - char *enddie; - struct objfile *objfile; +read_enumeration (struct dieinfo *dip, char *thisdie, char *enddie, + struct objfile *objfile) { struct type *type; struct symbol *sym; @@ -1677,9 +1643,7 @@ read_enumeration (dip, thisdie, enddie, objfile) */ static struct type * -enum_type (dip, objfile) - struct dieinfo *dip; - struct objfile *objfile; +enum_type (struct dieinfo *dip, struct objfile *objfile) { struct type *type; struct nextfield @@ -1805,11 +1769,8 @@ enum_type (dip, objfile) */ static void -read_func_scope (dip, thisdie, enddie, objfile) - struct dieinfo *dip; - char *thisdie; - char *enddie; - struct objfile *objfile; +read_func_scope (struct dieinfo *dip, char *thisdie, char *enddie, + struct objfile *objfile) { register struct context_stack *new; @@ -1855,8 +1816,7 @@ read_func_scope (dip, thisdie, enddie, objfile) */ static void -handle_producer (producer) - char *producer; +handle_producer (char *producer) { /* If this compilation unit was compiled with g++ or gcc, then set the @@ -1916,11 +1876,8 @@ handle_producer (producer) */ static void -read_file_scope (dip, thisdie, enddie, objfile) - struct dieinfo *dip; - char *thisdie; - char *enddie; - struct objfile *objfile; +read_file_scope (struct dieinfo *dip, char *thisdie, char *enddie, + struct objfile *objfile) { struct cleanup *back_to; struct symtab *symtab; @@ -1972,10 +1929,7 @@ read_file_scope (dip, thisdie, enddie, objfile) */ static void -process_dies (thisdie, enddie, objfile) - char *thisdie; - char *enddie; - struct objfile *objfile; +process_dies (char *thisdie, char *enddie, struct objfile *objfile) { char *nextdie; struct dieinfo di; @@ -2118,8 +2072,7 @@ process_dies (thisdie, enddie, objfile) */ static void -decode_line_numbers (linetable) - char *linetable; +decode_line_numbers (char *linetable) { char *tblscan; char *tblend; @@ -2192,8 +2145,7 @@ decode_line_numbers (linetable) */ static int -locval (dip) - struct dieinfo *dip; +locval (struct dieinfo *dip) { unsigned short nbytes; unsigned short locsize; @@ -2294,8 +2246,7 @@ locval (dip) */ static void -read_ofile_symtab (pst) - struct partial_symtab *pst; +read_ofile_symtab (struct partial_symtab *pst) { struct cleanup *back_to; unsigned long lnsize; @@ -2374,8 +2325,7 @@ read_ofile_symtab (pst) */ static void -psymtab_to_symtab_1 (pst) - struct partial_symtab *pst; +psymtab_to_symtab_1 (struct partial_symtab *pst) { int i; struct cleanup *old_chain; @@ -2447,8 +2397,7 @@ psymtab_to_symtab_1 (pst) */ static void -dwarf_psymtab_to_symtab (pst) - struct partial_symtab *pst; +dwarf_psymtab_to_symtab (struct partial_symtab *pst) { if (pst != NULL) @@ -2507,9 +2456,7 @@ dwarf_psymtab_to_symtab (pst) */ static void -add_enum_psymbol (dip, objfile) - struct dieinfo *dip; - struct objfile *objfile; +add_enum_psymbol (struct dieinfo *dip, struct objfile *objfile) { char *scan; char *listend; @@ -2558,9 +2505,7 @@ add_enum_psymbol (dip, objfile) */ static void -add_partial_symbol (dip, objfile) - struct dieinfo *dip; - struct objfile *objfile; +add_partial_symbol (struct dieinfo *dip, struct objfile *objfile) { switch (dip->die_tag) { @@ -2685,10 +2630,7 @@ NOTES static void -scan_partial_symbols (thisdie, enddie, objfile) - char *thisdie; - char *enddie; - struct objfile *objfile; +scan_partial_symbols (char *thisdie, char *enddie, struct objfile *objfile) { char *nextdie; char *temp; @@ -2809,12 +2751,8 @@ scan_partial_symbols (thisdie, enddie, objfile) */ static void -scan_compilation_units (thisdie, enddie, dbfoff, lnoffset, objfile) - char *thisdie; - char *enddie; - file_ptr dbfoff; - file_ptr lnoffset; - struct objfile *objfile; +scan_compilation_units (char *thisdie, char *enddie, file_ptr dbfoff, + file_ptr lnoffset, struct objfile *objfile) { char *nextdie; struct dieinfo di; @@ -2904,9 +2842,7 @@ scan_compilation_units (thisdie, enddie, dbfoff, lnoffset, objfile) */ static struct symbol * -new_symbol (dip, objfile) - struct dieinfo *dip; - struct objfile *objfile; +new_symbol (struct dieinfo *dip, struct objfile *objfile) { struct symbol *sym = NULL; @@ -3066,10 +3002,8 @@ new_symbol (dip, objfile) */ static void -synthesize_typedef (dip, objfile, type) - struct dieinfo *dip; - struct objfile *objfile; - struct type *type; +synthesize_typedef (struct dieinfo *dip, struct objfile *objfile, + struct type *type) { struct symbol *sym = NULL; @@ -3113,8 +3047,7 @@ synthesize_typedef (dip, objfile, type) */ static struct type * -decode_mod_fund_type (typedata) - char *typedata; +decode_mod_fund_type (char *typedata) { struct type *typep = NULL; unsigned short modcount; @@ -3160,8 +3093,7 @@ decode_mod_fund_type (typedata) */ static struct type * -decode_mod_u_d_type (typedata) - char *typedata; +decode_mod_u_d_type (char *typedata) { struct type *typep = NULL; unsigned short modcount; @@ -3224,10 +3156,7 @@ decode_mod_u_d_type (typedata) */ static struct type * -decode_modified_type (modifiers, modcount, mtype) - char *modifiers; - unsigned int modcount; - int mtype; +decode_modified_type (char *modifiers, unsigned int modcount, int mtype) { struct type *typep = NULL; unsigned short fundtype; @@ -3313,8 +3242,7 @@ decode_modified_type (modifiers, modcount, mtype) */ static struct type * -decode_fund_type (fundtype) - unsigned int fundtype; +decode_fund_type (unsigned int fundtype) { struct type *typep = NULL; @@ -3446,9 +3374,7 @@ decode_fund_type (fundtype) */ static char * -create_name (name, obstackp) - char *name; - struct obstack *obstackp; +create_name (char *name, struct obstack *obstackp) { int length; char *newname; @@ -3514,10 +3440,7 @@ create_name (name, obstackp) */ static void -basicdieinfo (dip, diep, objfile) - struct dieinfo *dip; - char *diep; - struct objfile *objfile; +basicdieinfo (struct dieinfo *dip, char *diep, struct objfile *objfile) { curdie = dip; memset (dip, 0, sizeof (struct dieinfo)); @@ -3576,9 +3499,7 @@ basicdieinfo (dip, diep, objfile) */ static void -completedieinfo (dip, objfile) - struct dieinfo *dip; - struct objfile *objfile; +completedieinfo (struct dieinfo *dip, struct objfile *objfile) { char *diep; /* Current pointer into raw DIE data */ char *end; /* Terminate DIE scan here */ @@ -3790,11 +3711,8 @@ completedieinfo (dip, objfile) */ static CORE_ADDR -target_to_host (from, nbytes, signextend, objfile) - char *from; - int nbytes; - int signextend; /* FIXME: Unused */ - struct objfile *objfile; +target_to_host (char *from, int nbytes, int signextend, /* FIXME: Unused */ + struct objfile *objfile) { CORE_ADDR rtnval; @@ -3841,8 +3759,7 @@ target_to_host (from, nbytes, signextend, objfile) */ static int -attribute_size (attr) - unsigned int attr; +attribute_size (unsigned int attr) { int nbytes; /* Size of next data for this attribute */ unsigned short form; /* Form of the attribute */ |