From: Andrew Stubbs Date: Fri, 2 Dec 2005 11:11:23 +0000 (+0000) Subject: 2005-12-02 Andrew Stubbs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0430b0d6a5e6aab360f81c68df76b794d4e6326b;p=binutils-gdb.git 2005-12-02 Andrew Stubbs * symfile.c (symbol_file_clear): Test symfile_objfile is not NULL before dereferencing it. Gettextize the query. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9fdbbcd325..b4ad773325d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2005-12-02 Andrew Stubbs + + * symfile.c (symbol_file_clear): Test symfile_objfile is not NULL + before dereferencing it. + Gettextize the query. + 2005-12-02 Joel Brobecker GDB 6.4 released from GDB 6.4 branch. diff --git a/gdb/symfile.c b/gdb/symfile.c index ddd198d77ed..5194e452da6 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -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 ();