diff options
author | Andrew Stubbs <andrew.stubbs@st.com> | 2005-12-02 11:11:23 +0000 |
---|---|---|
committer | Andrew Stubbs <andrew.stubbs@st.com> | 2005-12-02 11:11:23 +0000 |
commit | 0430b0d6a5e6aab360f81c68df76b794d4e6326b (patch) | |
tree | b18f7489e583a6a5083e5f0c24d244b219417e3f | |
parent | ce37844efa62ea7514eaeb73c1226a7e8d070c6d (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/symfile.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9fdbbc..b4ad773 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. 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 (); |