* symtab.c (no_symtab_msg): Remove definition.
authorJim Blandy <jimb@codesourcery.com>
Sun, 19 Nov 2000 17:27:38 +0000 (17:27 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sun, 19 Nov 2000 17:27:38 +0000 (17:27 +0000)
(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.

gdb/ChangeLog
gdb/linespec.c
gdb/symtab.c

index 241ab1bb65f2c66f88cf6a834ef6784f595868fa..3fb208589fb3d0618a4ac89f7e771bee7dbd9609 100644 (file)
@@ -1,3 +1,12 @@
+2000-11-19  Jim Blandy  <jimb@redhat.com>
+
+       * 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.
+
 2000-11-17  Kevin Buettner  <kevinb@redhat.com>
 
        * rs6000-tdep.c (refine_prologue_limit): New function.
index ac6b65eb9cf092d3a9b9837525e792bc96334ec6..4d3af751df9d2e9cc0fab8b37d996dc785bb426a 100644 (file)
@@ -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 */
index 09a8d79ec41d0f3b3cd73592bfae363505dd8963..be021dd33910d6f3c8c55ece931924803e84ffd0 100644 (file)
@@ -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");
This page took 0.033066 seconds and 4 git commands to generate.