* buildsym.c (finish_block): If we pop the context stack and it is

not empty, complain () instead of abort ().
This commit is contained in:
Jim Kingdon
1993-10-18 15:40:04 +00:00
parent f843c95fc3
commit f91b837dd0
2 changed files with 24 additions and 3 deletions

View File

@@ -667,11 +667,16 @@ end_symtab (end_addr, sort_pending, sort_linevec, objfile, section)
finish_block (cstk->name, &local_symbols, cstk->old_blocks,
cstk->start_addr, end_addr, objfile);
/* Debug: if context stack still has something in it,
we are in trouble. */
if (context_stack_depth > 0)
{
abort ();
/* This is said to happen with SCO. The old coffread.c code
simply emptied the context stack, so we do the same. FIXME:
Find out why it is happening. This is not believed to happen
in most cases (even for coffread.c); it used to be an abort(). */
static struct complaint msg =
{"Context stack not empty in end_symtab", 0, 0};
complain (&msg);
context_stack_depth = 0;
}
}