diff options
author | Tom Tromey <tromey@redhat.com> | 2013-04-08 19:48:30 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-04-08 19:48:30 +0000 |
commit | e623cf5da2730784a9062aa7ac9d6c2db37c061d (patch) | |
tree | 0d60cf4ef378d9e6a345d2cdac3251a24dc5f27b /gdb/jit.c | |
parent | 5f77db5271f164aec794974ebfc986d8122e71b3 (diff) | |
download | gdb-e623cf5da2730784a9062aa7ac9d6c2db37c061d.zip gdb-e623cf5da2730784a9062aa7ac9d6c2db37c061d.tar.gz gdb-e623cf5da2730784a9062aa7ac9d6c2db37c061d.tar.bz2 |
* coffread.c (process_coff_symbol, coff_read_enum_type): Call
allocate_symbol.
* dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
(read_func_scope): Call allocate_template_symbol.
(new_symbol_full): Call allocate_symbol.
* jit.c (finalize_symtab): Call allocate_symbol.
* jv-lang.c (add_class_symbol): Call allocate_symbol.
* mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
* stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
(common_block_end): Call allocate_symbol.
* symtab.c (allocate_symbol, initialize_symbol)
(allocate_template_symbol): New functions.
* symtab.c (allocate_symbol, initialize_symbol)
(allocate_template_symbol): Declare.
* xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
Diffstat (limited to 'gdb/jit.c')
-rw-r--r-- | gdb/jit.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -677,8 +677,7 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile) i--, gdb_block_iter = gdb_block_iter->next) { struct block *new_block = allocate_block (&objfile->objfile_obstack); - struct symbol *block_name = obstack_alloc (&objfile->objfile_obstack, - sizeof (struct symbol)); + struct symbol *block_name = allocate_symbol (objfile); struct type *block_type = arch_type (get_objfile_arch (objfile), TYPE_CODE_VOID, 1, @@ -691,7 +690,6 @@ finalize_symtab (struct gdb_symtab *stab, struct objfile *objfile) BLOCK_END (new_block) = (CORE_ADDR) gdb_block_iter->end; /* The name. */ - memset (block_name, 0, sizeof (struct symbol)); SYMBOL_DOMAIN (block_name) = VAR_DOMAIN; SYMBOL_ACLASS_INDEX (block_name) = LOC_BLOCK; SYMBOL_SYMTAB (block_name) = symtab; |