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.
This commit is contained in:
David Carlton 2003-09-11 23:43:56 +00:00
parent 6f18ad7010
commit a1632d59e5
3 changed files with 10 additions and 5 deletions

View File

@ -1,3 +1,9 @@
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.
2003-09-11 David Carlton <carlton@kealia.com>
* gdbtypes.h: Add TYPE_CODE_NAMESPACE.

View File

@ -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);
}

View File

@ -4696,6 +4696,9 @@ new_bvect (int nblocks)
static struct block *
new_block (enum block_type type)
{
/* FIXME: carlton/2003-09-11: This should use allocate_block to
allocate the block. Which, in turn, suggests that the block
should be allocated on an obstack. */
struct block *retval = xzalloc (sizeof (struct block));
if (type == FUNCTION_BLOCK)