From 0430b0d6a5e6aab360f81c68df76b794d4e6326b Mon Sep 17 00:00:00 2001 From: Andrew Stubbs Date: Fri, 2 Dec 2005 11:11:23 +0000 Subject: 2005-12-02 Andrew Stubbs * symfile.c (symbol_file_clear): Test symfile_objfile is not NULL before dereferencing it. Gettextize the query. --- gdb/symfile.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdb/symfile.c') diff --git a/gdb/symfile.c b/gdb/symfile.c index ddd198d..5194e45 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 (); -- cgit v1.1