From: Jim Kingdon Date: Sat, 17 Jul 1993 01:58:33 +0000 (+0000) Subject: * symtab.c (find_pc_symtab): Call warning, not printf directly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ac82e9a5b7c56377e79969208fddc2ea97ccd7e2;p=binutils-gdb.git * symtab.c (find_pc_symtab): Call warning, not printf directly. * solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 258729ffaf3..eb7dc327984 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/symtab.c b/gdb/symtab.c index f8b2d81324b..38ccee18941 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -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);