Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com)
+ * symtab.c: Make internal errors produce more useful messages.
+
* tm-68k.h: Move code that is duplicated in almost every single
m68k based machine's configuration files to this common file.
Duplications in the configuration files still need to be removed
if (!strcmp (name, ps->filename))
{
if (ps->readin)
- fatal ("Internal: readin pst found when no symtab found.");
+ error ("Internal: readin pst for `%s' found when no symtab found.", name);
return PSYMTAB_TO_SYMTAB (ps);
}
&& !strcmp (ps->filename + l - len, name))
{
if (ps->readin)
- fatal ("Internal: readin pst found when no symtab found.");
+ error ("Internal: readin pst for `%s' found when no symtab found.", name);
return PSYMTAB_TO_SYMTAB (ps);
}
}
block = BLOCKVECTOR_BLOCK (bv, GLOBAL_BLOCK);
sym = lookup_block_symbol (block, name, namespace);
if (!sym)
- fatal ("Internal: global symbol found in psymtab but not in symtab");
+ error ("Internal: global symbol `%s' found in psymtab but not in symtab", name);
if (symtab != NULL)
*symtab = s;
return sym;
block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
sym = lookup_block_symbol (block, name, namespace);
if (!sym)
- fatal ("Internal: static symbol found in psymtab but not in symtab");
+ error ("Internal: static symbol `%s' found in psymtab but not in symtab", name);
if (symtab != NULL)
*symtab = s;
return sym;
block = BLOCKVECTOR_BLOCK (bv, STATIC_BLOCK);
sym = lookup_demangled_block_symbol (block, name);
if (!sym)
- fatal ("Internal: static symbol found in psymtab but not in symtab");
+ error ("Internal: mangled static symbol `%s' found in psymtab but not in symtab", name);
if (symtab != NULL)
*symtab = s;
return sym;
ps = find_pc_psymtab (pc);
if (ps && ps->readin)
printf_filtered (
- "(Internal error: pc in read in psymtab, but not in symtab.)\n");
+ "(Internal error: pc 0x%x in read in psymtab, but not in symtab.)\n", pc);
if (ps)
s = PSYMTAB_TO_SYMTAB (ps);