diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-17 01:58:33 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-17 01:58:33 +0000 |
commit | ac82e9a5b7c56377e79969208fddc2ea97ccd7e2 (patch) | |
tree | fb19e22c2d8a414a10a307d93bcd68fcb4b3dd45 /gdb/symtab.c | |
parent | 09934a2b2ec9cbcbc8b1b9189e8a1c6f25e8f1de (diff) | |
download | gdb-ac82e9a5b7c56377e79969208fddc2ea97ccd7e2.zip gdb-ac82e9a5b7c56377e79969208fddc2ea97ccd7e2.tar.gz gdb-ac82e9a5b7c56377e79969208fddc2ea97ccd7e2.tar.bz2 |
* symtab.c (find_pc_symtab): Call warning, not printf directly.
* solib.c (solib_add): Use x{re,m}alloc, not {re,m}alloc.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index f8b2d81..38ccee1 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); |