2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
[binutils-gdb.git] / gdb / symfile.c
index ddd198d77ed60213502baf2840c01f081189af96..5194e452da680c46bed2398a33a81c04efb5c10e 100644 (file)
@@ -1085,8 +1085,10 @@ 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
+         ? !query (_("Discard symbol table from `%s'? "),
+                   symfile_objfile->name)
+         : !query (_("Discard symbol table? "))))
     error (_("Not confirmed."));
     free_all_objfiles ();