--- gdb-5.1.1/gdb/symfile.c Sun Jul 15 20:57:06 2001 +++ gdb-5.1.1/gdb/symfile.c.orig Thu Dec 19 09:58:20 2002 @@ -931,7 +931,7 @@ symbol_file_clear (int from_tty) if ((have_full_symbols () || have_partial_symbols ()) && from_tty && !query ("Discard symbol table from `%s'? ", - symfile_objfile->name)) + symfile_objfile ? symfile_objfile->name : "current image(s)")) error ("Not confirmed."); free_all_objfiles ();