mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* buildsym.c (finish_block): If we pop the context stack and it is
not empty, complain () instead of abort ().
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user