aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2000-11-19 17:27:38 +0000
committerJim Blandy <jimb@codesourcery.com>2000-11-19 17:27:38 +0000
commite85428fca34d86c6b432884ea40b565508fa8773 (patch)
treed9d613e3205cc993c7781de2c3f2852eb2b204b9 /gdb/symtab.c
parent4a92d011055684d1b0ad2a6115eb80993006334c (diff)
downloadgdb-e85428fca34d86c6b432884ea40b565508fa8773.zip
gdb-e85428fca34d86c6b432884ea40b565508fa8773.tar.gz
gdb-e85428fca34d86c6b432884ea40b565508fa8773.tar.bz2
* symtab.c (no_symtab_msg): Remove definition.
(sources_info): Replace use of no_symtab_msg with the string itself. * linespec.c (no_symtab_msg): Remove declaration. (decode_line_1): Replace uses of no_symtab_msg with the string itself.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 09a8d79..be021dd 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -116,8 +116,6 @@ struct type *builtin_type_error;
const struct block *block_found;
-char no_symtab_msg[] = "No symbol table is loaded. Use the \"file\" command.";
-
/* While the C++ support is still in flux, issue a possibly helpful hint on
using the new command completion feature on single quoted demangled C++
symbols. Remove when loose ends are cleaned up. FIXME -fnf */
@@ -2226,7 +2224,7 @@ sources_info (char *ignore, int from_tty)
if (!have_full_symbols () && !have_partial_symbols ())
{
- error (no_symtab_msg);
+ error ("No symbol table is loaded. Use the \"file\" command.");
}
printf_filtered ("Source files for which symbols have been read in:\n\n");