summaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-09-11 23:43:56 +0000
committerDavid Carlton <carlton@bactrian.org>2003-09-11 23:43:56 +0000
commit9ebce2e7c63a3564cfda19a4420a540c43f12ef4 (patch)
tree177ed69b745fe0152ff125153da867192cb1133d /gdb/buildsym.c
parentfbf0a3138d5877d46fd79db1219287ae54ca5352 (diff)
downloadgdb-9ebce2e7c63a3564cfda19a4420a540c43f12ef4.tar.gz
2003-09-11 David Carlton <carlton@kealia.com>
* buildsym.c (finish_block): Use allocate_block to allocate the block. * mdebugread.c (new_block): Add FIXME.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index f0d75ce3f52..aa87d4c4fcb 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -231,19 +231,15 @@ finish_block (struct symbol *symbol, struct pending **listhead,
register struct pending_block *pblock;
struct pending_block *opblock;
- /* Initialize the block's dictionary. */
+ block = allocate_block (&objfile->symbol_obstack);
if (symbol)
{
- block = (struct block *)
- obstack_alloc (&objfile->symbol_obstack, sizeof (struct block));
BLOCK_DICT (block) = dict_create_linear (&objfile->symbol_obstack,
*listhead);
}
else
{
- block = (struct block *)
- obstack_alloc (&objfile->symbol_obstack, sizeof (struct block));
BLOCK_DICT (block) = dict_create_hashed (&objfile->symbol_obstack,
*listhead);
}