summaryrefslogtreecommitdiff
path: root/gdb/linespec.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
commit27f9dfb852868bc9f0c94cad1e1386c1f14c789d (patch)
treedbe812f9350e3e315fba8aa0b8eb316119f63c0c /gdb/linespec.c
parentb24857474f23efd3e007812d9089e19a0736b199 (diff)
downloadgdb-27f9dfb852868bc9f0c94cad1e1386c1f14c789d.tar.gz
* 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/linespec.c')
-rw-r--r--gdb/linespec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index ac6b65eb9cf..4d3af751df9 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -37,8 +37,6 @@ extern char *find_template_name_end (char *);
extern char *operator_chars (char *, char **);
-extern char *no_symtab_msg;
-
/* Prototypes for local functions */
static void cplusplus_hint (char *name);
@@ -939,7 +937,7 @@ decode_line_1 (char **argptr, int funfirstline, struct symtab *default_symtab,
if (s == 0)
{
if (!have_full_symbols () && !have_partial_symbols ())
- error (no_symtab_msg);
+ error ("No symbol table is loaded. Use the \"file\" command.");
error ("No source file named %s.", copy);
}
@@ -1259,7 +1257,7 @@ minimal_symbol_found: /* We also jump here from the case for variables
if (!have_full_symbols () &&
!have_partial_symbols () && !have_minimal_symbols ())
- error (no_symtab_msg);
+ error ("No symbol table is loaded. Use the \"file\" command.");
error ("Function \"%s\" not defined.", copy);
return values; /* for lint */