* symtab.c (find_pc_symtab): Call warning, not printf directly.

* solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
This commit is contained in:
Jim Kingdon 1993-07-17 01:58:33 +00:00
parent 09934a2b2e
commit ac82e9a5b7
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Fri Jul 16 18:48:52 1993 Jim Kingdon (kingdon@rtl.cygnus.com)
* symtab.c (find_pc_symtab): Call warning, not printf directly.
* solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
Fri Jul 16 09:56:42 1993 Ian Lance Taylor (ian@cygnus.com)
* mipsread.c: No longer need to undefine ZMAGIC.

View File

@ -958,7 +958,11 @@ find_pc_symtab (pc)
if (ps)
{
if (ps->readin)
printf_filtered ("(Internal error: pc 0x%x in read in psymtab, but not in symtab.)\n", pc);
/* Might want to error() here (in case symtab is corrupt and
will cause a core dump), but maybe we can successfully
continue, so let's not. */
warning ("\
(Internal error: pc 0x%x in read in psymtab, but not in symtab.)\n", pc);
s = PSYMTAB_TO_SYMTAB (ps);
}
return (s);