aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorAndrew Stubbs <andrew.stubbs@st.com>2005-12-02 11:11:23 +0000
committerAndrew Stubbs <andrew.stubbs@st.com>2005-12-02 11:11:23 +0000
commit0430b0d6a5e6aab360f81c68df76b794d4e6326b (patch)
treeb18f7489e583a6a5083e5f0c24d244b219417e3f /gdb/symfile.c
parentce37844efa62ea7514eaeb73c1226a7e8d070c6d (diff)
downloadgdb-0430b0d6a5e6aab360f81c68df76b794d4e6326b.zip
gdb-0430b0d6a5e6aab360f81c68df76b794d4e6326b.tar.gz
gdb-0430b0d6a5e6aab360f81c68df76b794d4e6326b.tar.bz2
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.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c6
1 files changed, 4 insertions, 2 deletions
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 ();