2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>

* symfile.c (symbol_file_clear): Test symfile_objfile is not NULL
	before dereferencing it.
	Gettextize the query.
This commit is contained in:
Andrew Stubbs 2005-12-02 11:11:23 +00:00
parent ce37844efa
commit 0430b0d6a5
2 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2005-12-02 Andrew Stubbs <andrew.stubbs@st.com>
* symfile.c (symbol_file_clear): Test symfile_objfile is not NULL
before dereferencing it.
Gettextize the query.
2005-12-02 Joel Brobecker <brobecker@adacore.com>
GDB 6.4 released from GDB 6.4 branch.

View 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 ();