From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1089 invoked by alias); 27 Sep 2010 20:06:05 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 1059 invoked by uid 306); 27 Sep 2010 20:06:03 -0000 Date: Mon, 27 Sep 2010 20:06:00 -0000 Message-ID: <20100927200603.1044.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-multi-inferior: Run: perl -pi~ -e 's/OBJFILE_OBJFILE_OBSTACK/OBJFILE_OBSTACK/g' on the sources X-Git-Refname: refs/heads/archer-tromey-multi-inferior X-Git-Reftype: branch X-Git-Oldrev: 2525d06a7ec809dedf0c5317839759176ee85eba X-Git-Newrev: ed7454cbdc9dc889029e787145e1c1eaf8f6401d X-SW-Source: 2010-q3/txt/msg00115.txt.bz2 List-Id: The branch, archer-tromey-multi-inferior has been updated via ed7454cbdc9dc889029e787145e1c1eaf8f6401d (commit) from 2525d06a7ec809dedf0c5317839759176ee85eba (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit ed7454cbdc9dc889029e787145e1c1eaf8f6401d Author: Tom Tromey Date: Mon Sep 27 14:01:55 2010 -0600 Run: perl -pi~ -e 's/OBJFILE_OBJFILE_OBSTACK/OBJFILE_OBSTACK/g' on the sources ----------------------------------------------------------------------- Summary of changes: gdb/ada-lang.c | 2 +- gdb/arm-tdep.c | 4 +- gdb/buildsym.c | 22 ++++++++++---------- gdb/coffread.c | 10 ++++---- gdb/cp-namespace.c | 16 +++++++------- gdb/dbxread.c | 22 ++++++++++---------- gdb/dwarf2-frame.c | 12 +++++----- gdb/dwarf2read.c | 54 ++++++++++++++++++++++++++-------------------------- gdb/elfread.c | 4 +- gdb/gdbtypes.c | 14 ++++++------ gdb/gdbtypes.h | 4 +- gdb/hppa-tdep.c | 6 ++-- gdb/jv-lang.c | 24 +++++++++++----------- gdb/mdebugread.c | 34 ++++++++++++++++---------------- gdb/minsyms.c | 8 +++--- gdb/objc-lang.c | 2 +- gdb/objfiles.c | 10 ++++---- gdb/objfiles.h | 2 +- gdb/psymtab.c | 4 +- gdb/solib-spu.c | 2 +- gdb/spu-tdep.c | 2 +- gdb/stabsread.c | 52 +++++++++++++++++++++++++------------------------- gdb/symfile.c | 12 +++++----- gdb/symmisc.c | 2 +- gdb/symtab.c | 6 ++-- gdb/xcoffread.c | 24 +++++++++++----------- 26 files changed, 177 insertions(+), 177 deletions(-) First 500 lines of diff: diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 4e22856..b25a8e7 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -1221,7 +1221,7 @@ ada_decode_symbol (const struct general_symbol_info *gsymbol) struct objfile *objf = gsymbol->obj_section->objfile; *resultp = obsavestring (decoded, strlen (decoded), - &OBJFILE_OBJFILE_OBSTACK (objf)); + &OBJFILE_OBSTACK (objf)); } /* Sometimes, we can't find a corresponding objfile, in which case, we put the result on the heap. Since we only decode diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 816b8e0..67f9a29 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -6183,10 +6183,10 @@ arm_record_special_symbol (struct gdbarch *gdbarch, struct objfile *objfile, data = objfile_data (objfile, arm_objfile_data_key); if (data == NULL) { - data = OBSTACK_ZALLOC (&OBJFILE_OBJFILE_OBSTACK (objfile), + data = OBSTACK_ZALLOC (&OBJFILE_OBSTACK (objfile), struct arm_per_objfile); set_objfile_data (objfile, arm_objfile_data_key, data); - data->section_maps = OBSTACK_CALLOC (&OBJFILE_OBJFILE_OBSTACK (objfile), + data->section_maps = OBSTACK_CALLOC (&OBJFILE_OBSTACK (objfile), OBJFILE_OBFD (objfile)->section_count, VEC(arm_mapping_symbol_s) *); } diff --git a/gdb/buildsym.c b/gdb/buildsym.c index f61342b..98b5d20 100644 --- a/gdb/buildsym.c +++ b/gdb/buildsym.c @@ -241,16 +241,16 @@ finish_block (struct symbol *symbol, struct pending **listhead, struct pending_block *pblock; struct pending_block *opblock; - block = allocate_block (&OBJFILE_OBJFILE_OBSTACK (objfile)); + block = allocate_block (&OBJFILE_OBSTACK (objfile)); if (symbol) { - BLOCK_DICT (block) = dict_create_linear (&OBJFILE_OBJFILE_OBSTACK (objfile), + BLOCK_DICT (block) = dict_create_linear (&OBJFILE_OBSTACK (objfile), *listhead); } else { - BLOCK_DICT (block) = dict_create_hashed (&OBJFILE_OBJFILE_OBSTACK (objfile), + BLOCK_DICT (block) = dict_create_hashed (&OBJFILE_OBSTACK (objfile), *listhead); } @@ -386,7 +386,7 @@ finish_block (struct symbol *symbol, struct pending **listhead, opblock = pblock; } - block_set_using (block, using_directives, &OBJFILE_OBJFILE_OBSTACK (objfile)); + block_set_using (block, using_directives, &OBJFILE_OBSTACK (objfile)); using_directives = NULL; record_pending_block (objfile, block, opblock); @@ -409,7 +409,7 @@ record_pending_block (struct objfile *objfile, struct block *block, struct pending_block *pblock; pblock = (struct pending_block *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (struct pending_block)); + obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct pending_block)); pblock->block = block; if (opblock) { @@ -469,7 +469,7 @@ make_blockvector (struct objfile *objfile) } blockvector = (struct blockvector *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + obstack_alloc (&OBJFILE_OBSTACK (objfile), (sizeof (struct blockvector) + (i - 1) * sizeof (struct block *))); @@ -491,7 +491,7 @@ make_blockvector (struct objfile *objfile) blockvector. */ if (pending_addrmap && pending_addrmap_interesting) BLOCKVECTOR_MAP (blockvector) - = addrmap_create_fixed (pending_addrmap, &OBJFILE_OBJFILE_OBSTACK (objfile)); + = addrmap_create_fixed (pending_addrmap, &OBJFILE_OBSTACK (objfile)); else BLOCKVECTOR_MAP (blockvector) = 0; @@ -1072,7 +1072,7 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) { /* Reallocate the line table on the symbol obstack */ symtab->linetable = (struct linetable *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), linetablesize); + obstack_alloc (&OBJFILE_OBSTACK (objfile), linetablesize); memcpy (symtab->linetable, subfile->line_vector, linetablesize); } else @@ -1084,7 +1084,7 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) { /* Reallocate the dirname on the symbol obstack */ symtab->dirname = (char *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + obstack_alloc (&OBJFILE_OBSTACK (objfile), strlen (subfile->dirname) + 1); strcpy (symtab->dirname, subfile->dirname); } @@ -1108,14 +1108,14 @@ end_symtab (CORE_ADDR end_addr, struct objfile *objfile, int section) { symtab->debugformat = obsavestring (subfile->debugformat, strlen (subfile->debugformat), - &OBJFILE_OBJFILE_OBSTACK (objfile)); + &OBJFILE_OBSTACK (objfile)); } /* Similarly for the producer. */ if (subfile->producer != NULL) symtab->producer = obsavestring (subfile->producer, strlen (subfile->producer), - &OBJFILE_OBJFILE_OBSTACK (objfile)); + &OBJFILE_OBSTACK (objfile)); /* All symtabs for the main file and the subfiles share a blockvector, so we need to clear primary for everything diff --git a/gdb/coffread.c b/gdb/coffread.c index 48d3ce8..933d7da 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -1507,7 +1507,7 @@ process_coff_symbol (struct coff_symbol *cs, struct objfile *objfile) { struct symbol *sym - = (struct symbol *) obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + = (struct symbol *) obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct symbol)); char *name; @@ -1972,7 +1972,7 @@ coff_read_struct_type (int index, int length, int lastsym, /* Save the data. */ list->field.name = - obsavestring (name, strlen (name), &OBJFILE_OBJFILE_OBSTACK (objfile)); + obsavestring (name, strlen (name), &OBJFILE_OBSTACK (objfile)); FIELD_TYPE (list->field) = decode_type (ms, ms->c_type, &sub_aux, objfile); SET_FIELD_BITPOS (list->field, 8 * ms->c_value); @@ -1989,7 +1989,7 @@ coff_read_struct_type (int index, int length, int lastsym, /* Save the data. */ list->field.name = - obsavestring (name, strlen (name), &OBJFILE_OBJFILE_OBSTACK (objfile)); + obsavestring (name, strlen (name), &OBJFILE_OBSTACK (objfile)); FIELD_TYPE (list->field) = decode_type (ms, ms->c_type, &sub_aux, objfile); SET_FIELD_BITPOS (list->field, ms->c_value); @@ -2058,12 +2058,12 @@ coff_read_enum_type (int index, int length, int lastsym, { case C_MOE: sym = (struct symbol *) obstack_alloc - (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (struct symbol)); + (&OBJFILE_OBSTACK (objfile), sizeof (struct symbol)); memset (sym, 0, sizeof (struct symbol)); SYMBOL_SET_LINKAGE_NAME (sym, obsavestring (name, strlen (name), - &OBJFILE_OBJFILE_OBSTACK (objfile))); + &OBJFILE_OBSTACK (objfile))); SYMBOL_CLASS (sym) = LOC_CONST; SYMBOL_DOMAIN (sym) = VAR_DOMAIN; SYMBOL_VALUE (sym) = ms->c_value; diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index b6d9d03..8051f1b 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -115,7 +115,7 @@ cp_scan_for_anonymous_namespaces (const struct symbol *symbol) namespace given by the previous component if there is one, or to the global namespace if there isn't. */ cp_add_using_directive (dest, src, NULL, NULL, - &OBJFILE_OBJFILE_OBSTACK (SYMBOL_SYMTAB (symbol)->objfile)); + &OBJFILE_OBSTACK (SYMBOL_SYMTAB (symbol)->objfile)); } /* The "+ 2" is for the "::". */ previous_component = next_component + 2; @@ -703,7 +703,7 @@ initialize_namespace_symtab (struct objfile *objfile) namespace_symtab->free_code = free_nothing; namespace_symtab->dirname = NULL; - bv = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + bv = obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct blockvector) + FIRST_LOCAL_BLOCK * sizeof (struct block *)); BLOCKVECTOR_NBLOCKS (bv) = FIRST_LOCAL_BLOCK + 1; @@ -711,12 +711,12 @@ initialize_namespace_symtab (struct objfile *objfile) /* Allocate empty GLOBAL_BLOCK and STATIC_BLOCK. */ - bl = allocate_block (&OBJFILE_OBJFILE_OBSTACK (objfile)); - BLOCK_DICT (bl) = dict_create_linear (&OBJFILE_OBJFILE_OBSTACK (objfile), + bl = allocate_block (&OBJFILE_OBSTACK (objfile)); + BLOCK_DICT (bl) = dict_create_linear (&OBJFILE_OBSTACK (objfile), NULL); BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK) = bl; - bl = allocate_block (&OBJFILE_OBJFILE_OBSTACK (objfile)); - BLOCK_DICT (bl) = dict_create_linear (&OBJFILE_OBJFILE_OBSTACK (objfile), + bl = allocate_block (&OBJFILE_OBSTACK (objfile)); + BLOCK_DICT (bl) = dict_create_linear (&OBJFILE_OBSTACK (objfile), NULL); BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK) = bl; @@ -734,7 +734,7 @@ initialize_namespace_symtab (struct objfile *objfile) having a symtab/block for this purpose seems like the best solution for now. */ - bl = allocate_block (&OBJFILE_OBJFILE_OBSTACK (objfile)); + bl = allocate_block (&OBJFILE_OBSTACK (objfile)); BLOCK_DICT (bl) = dict_create_hashed_expandable (); BLOCKVECTOR_BLOCK (bv, FIRST_LOCAL_BLOCK) = bl; @@ -846,7 +846,7 @@ check_one_possible_namespace_symbol (const char *name, int len, TYPE_TAG_NAME (type) = TYPE_NAME (type); - sym = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (struct symbol)); + sym = obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct symbol)); memset (sym, 0, sizeof (struct symbol)); SYMBOL_LANGUAGE (sym) = language_cplus; /* Note that init_type copied the name to the objfile's diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 0d78ced..d997236 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -709,7 +709,7 @@ dbx_symfile_init (struct objfile *objfile) DBX_STRINGTAB_SIZE (objfile)); DBX_STRINGTAB (objfile) = - (char *) obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + (char *) obstack_alloc (&OBJFILE_OBSTACK (objfile), DBX_STRINGTAB_SIZE (objfile)); OBJSTAT (objfile, sz_strtab += DBX_STRINGTAB_SIZE (objfile)); @@ -1702,7 +1702,7 @@ pos %d"), { sym_len = strlen (new_name); sym_name = obsavestring (new_name, sym_len, - &OBJFILE_OBJFILE_OBSTACK (objfile)); + &OBJFILE_OBSTACK (objfile)); xfree (new_name); } xfree (name); @@ -2202,7 +2202,7 @@ start_psymtab (struct objfile *objfile, char *filename, CORE_ADDR textlow, start_psymtab_common (objfile, OBJFILE_SECTION_OFFSETS (objfile), filename, textlow, global_syms, static_syms); - result->read_symtab_private = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + result->read_symtab_private = obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct symloc)); LDSYMOFF (result) = ldsymoff; result->read_symtab = dbx_psymtab_to_symtab; @@ -2331,7 +2331,7 @@ end_psymtab (struct partial_symtab *pst, char **include_list, int num_includes, if (number_dependencies) { pst->dependencies = (struct partial_symtab **) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + obstack_alloc (&OBJFILE_OBSTACK (objfile), number_dependencies * sizeof (struct partial_symtab *)); memcpy (pst->dependencies, dependency_list, number_dependencies * sizeof (struct partial_symtab *)); @@ -2347,7 +2347,7 @@ end_psymtab (struct partial_symtab *pst, char **include_list, int num_includes, /* Copy the sesction_offsets array from the main psymtab. */ subpst->section_offsets = pst->section_offsets; subpst->read_symtab_private = - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (struct symloc)); + obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct symloc)); LDSYMOFF (subpst) = LDSYMLEN (subpst) = subpst->textlow = @@ -2356,7 +2356,7 @@ end_psymtab (struct partial_symtab *pst, char **include_list, int num_includes, /* We could save slight bits of space by only making one of these, shared by the entire set of include files. FIXME-someday. */ subpst->dependencies = (struct partial_symtab **) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct partial_symtab *)); subpst->dependencies[0] = pst; subpst->number_of_dependencies = 1; @@ -2815,7 +2815,7 @@ process_one_symbol (int type, int desc, CORE_ADDR valu, char *name, /* For C++, set the block's scope. */ if (SYMBOL_LANGUAGE (new->name) == language_cplus) - cp_set_block_scope (new->name, block, &OBJFILE_OBJFILE_OBSTACK (objfile), + cp_set_block_scope (new->name, block, &OBJFILE_OBSTACK (objfile), "", 0); /* May be switching to an assembler file which may not be using @@ -3220,7 +3220,7 @@ no enclosing block")); /* For C++, set the block's scope. */ if (SYMBOL_LANGUAGE (new->name) == language_cplus) cp_set_block_scope (new->name, block, - &OBJFILE_OBJFILE_OBSTACK (objfile), + &OBJFILE_OBSTACK (objfile), "", 0); } @@ -3361,7 +3361,7 @@ coffstab_build_psymtabs (struct objfile *objfile, if (stabstrsize > bfd_get_size (sym_bfd)) error (_("ridiculous string table size: %d bytes"), stabstrsize); DBX_STRINGTAB (objfile) = (char *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), stabstrsize + 1); + obstack_alloc (&OBJFILE_OBSTACK (objfile), stabstrsize + 1); OBJSTAT (objfile, sz_strtab += stabstrsize + 1); /* Now read in the string table in one big gulp. */ @@ -3455,7 +3455,7 @@ elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect, if (stabstrsize > bfd_get_size (sym_bfd)) error (_("ridiculous string table size: %d bytes"), stabstrsize); DBX_STRINGTAB (objfile) = (char *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), stabstrsize + 1); + obstack_alloc (&OBJFILE_OBSTACK (objfile), stabstrsize + 1); OBJSTAT (objfile, sz_strtab += stabstrsize + 1); /* Now read in the string table in one big gulp. */ @@ -3550,7 +3550,7 @@ section (%s)"), error (_("ridiculous string table size: %d bytes"), DBX_STRINGTAB_SIZE (objfile)); DBX_STRINGTAB (objfile) = (char *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), DBX_STRINGTAB_SIZE (objfile) + 1); + obstack_alloc (&OBJFILE_OBSTACK (objfile), DBX_STRINGTAB_SIZE (objfile) + 1); OBJSTAT (objfile, sz_strtab += DBX_STRINGTAB_SIZE (objfile) + 1); /* Now read in the string table in one big gulp. */ diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 27d291e..0732c78 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -1724,7 +1724,7 @@ decode_frame_entry_1 (struct comp_unit *unit, gdb_byte *start, int eh_frame_p, return end; cie = (struct dwarf2_cie *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (unit->objfile), + obstack_alloc (&OBJFILE_OBSTACK (unit->objfile), sizeof (struct dwarf2_cie)); cie->initial_instructions = NULL; cie->cie_pointer = cie_pointer; @@ -1895,7 +1895,7 @@ decode_frame_entry_1 (struct comp_unit *unit, gdb_byte *start, int eh_frame_p, return NULL; fde = (struct dwarf2_fde *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (unit->objfile), + obstack_alloc (&OBJFILE_OBSTACK (unit->objfile), sizeof (struct dwarf2_fde)); fde->cie = find_cie (cie_table, cie_pointer); if (fde->cie == NULL) @@ -2078,7 +2078,7 @@ dwarf2_build_frame_info (struct objfile *objfile) fde_table.entries = NULL; /* Build a minimal decoding of the DWARF2 compilation unit. */ - unit = (struct comp_unit *) obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + unit = (struct comp_unit *) obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct comp_unit)); unit->abfd = OBJFILE_OBFD (objfile); unit->objfile = objfile; @@ -2143,7 +2143,7 @@ dwarf2_build_frame_info (struct objfile *objfile) /* Copy fde_table to obstack: it is needed at runtime. */ fde_table2 = (struct dwarf2_fde_table *) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (*fde_table2)); + obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (*fde_table2)); if (fde_table.num_entries == 0) { @@ -2201,12 +2201,12 @@ dwarf2_build_frame_info (struct objfile *objfile) && fde_prev->initial_location == fde->initial_location) continue; - obstack_grow (&OBJFILE_OBJFILE_OBSTACK (objfile), &fde_table.entries[i], + obstack_grow (&OBJFILE_OBSTACK (objfile), &fde_table.entries[i], sizeof (fde_table.entries[0])); ++fde_table2->num_entries; fde_prev = fde; } - fde_table2->entries = obstack_finish (&OBJFILE_OBJFILE_OBSTACK (objfile)); + fde_table2->entries = obstack_finish (&OBJFILE_OBSTACK (objfile)); /* Discard the original fde_table. */ xfree (fde_table.entries); diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 0116e0f..16ed045 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1143,7 +1143,7 @@ dwarf2_has_info (struct objfile *objfile) { /* Initialize per-objfile state. */ struct dwarf2_per_objfile *data - = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (*data)); + = obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (*data)); memset (data, 0, sizeof (*data)); set_objfile_data (objfile, dwarf2_objfile_data_key, data); @@ -1286,7 +1286,7 @@ zlib_decompress_section (struct objfile *objfile, asection *sectp, strm.avail_in = compressed_size - header_size; strm.next_in = (Bytef*) compressed_buffer + header_size; strm.avail_out = uncompressed_size; - uncompressed_buffer = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + uncompressed_buffer = obstack_alloc (&OBJFILE_OBSTACK (objfile), uncompressed_size); rc = inflateInit (&strm); while (strm.avail_in > 0) @@ -1378,7 +1378,7 @@ dwarf2_read_section (struct objfile *objfile, struct dwarf2_section_info *info) /* If we get here, we are a normal, not-compressed section. */ info->buffer = buf - = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), info->size); + = obstack_alloc (&OBJFILE_OBSTACK (objfile), info->size); /* When debugging .o files, we may need to apply relocations; see http://sourceware.org/ml/gdb-patches/2002-04/msg00136.html . @@ -1561,7 +1561,7 @@ dwarf2_create_include_psymtab (char *name, struct partial_symtab *pst, subpst->texthigh = 0; subpst->dependencies = (struct partial_symtab **) - obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct partial_symtab *)); subpst->dependencies[0] = pst; subpst->number_of_dependencies = 1; @@ -1650,7 +1650,7 @@ create_debug_types_hash_table (struct objfile *objfile) hash_type_signature, eq_type_signature, NULL, - &OBJFILE_OBJFILE_OBSTACK (objfile), + &OBJFILE_OBSTACK (objfile), hashtab_obstack_allocate, dummy_obstack_deallocate); @@ -1694,7 +1694,7 @@ create_debug_types_hash_table (struct objfile *objfile) ptr += 8; type_offset = read_offset_1 (OBJFILE_OBFD (objfile), ptr, offset_size); - type_sig = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), sizeof (*type_sig)); + type_sig = obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (*type_sig)); memset (type_sig, 0, sizeof (*type_sig)); type_sig->signature = signature; type_sig->offset = offset; @@ -2072,7 +2072,7 @@ dwarf2_build_psymtabs_hard (struct objfile *objfile) } OBJFILE_PSYMTABS_ADDRMAP (objfile) = addrmap_create_fixed (OBJFILE_PSYMTABS_ADDRMAP (objfile), - &OBJFILE_OBJFILE_OBSTACK (objfile)); + &OBJFILE_OBSTACK (objfile)); discard_cleanups (addrmap_cleanup); do_cleanups (back_to); @@ -2177,7 +2177,7 @@ create_all_comp_units (struct objfile *objfile) &initial_length_size); /* Save the compilation unit for later lookup. */ - this_cu = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + this_cu = obstack_alloc (&OBJFILE_OBSTACK (objfile), sizeof (struct dwarf2_per_cu_data)); memset (this_cu, 0, sizeof (*this_cu)); this_cu->offset = offset; @@ -2196,7 +2196,7 @@ create_all_comp_units (struct objfile *objfile) } dwarf2_per_objfile->all_comp_units - = obstack_alloc (&OBJFILE_OBJFILE_OBSTACK (objfile), + = obstack_alloc (&OBJFILE_OBSTACK (objfile), n_comp_units * sizeof (struct dwarf2_per_cu_data *)); memcpy (dwarf2_per_objfile->all_comp_units, all_comp_units, n_comp_units * sizeof (struct dwarf2_per_cu_data *)); @@ -3397,7 +3397,7 @@ dwarf2_compute_name (char *name, struct die_info *die, struct dwarf2_cu *cu, } } - name = ui_file_obsavestring (buf, &OBJFILE_OBJFILE_OBSTACK (cu->objfile), + name = ui_file_obsavestring (buf, &OBJFILE_OBSTACK (cu->objfile), &length); ui_file_delete (buf); @@ -3405,7 +3405,7 @@ dwarf2_compute_name (char *name, struct die_info *die, struct dwarf2_cu *cu, { char *cname = dwarf2_canonicalize_name (name, cu, - &OBJFILE_OBJFILE_OBSTACK (cu->objfile)); + &OBJFILE_OBSTACK (cu->objfile)); if (cname != NULL) name = cname; @@ -3540,7 +3540,7 @@ read_import_statement (struct die_info *die, struct dwarf2_cu *cu) canonical_name, import_alias, imported_declaration, - &OBJFILE_OBJFILE_OBSTACK (cu->objfile)); + &OBJFILE_OBSTACK (cu->objfile)); } static void @@ -4017,7 +4017,7 @@ read_func_scope (struct die_info *die, struct dwarf2_cu *cu) hooks/post-receive -- Repository for Project Archer.