*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / language.c
index d975f2353ba52145f4f995bce2e8694745c79144..5dbe81c0032bb6ed1866e7735c1bf57ef51c4035 100644 (file)
@@ -884,7 +884,7 @@ add_language (const struct language_defn *lang)
   /* For the "set language" command.  */
   static char **language_names = NULL;
   /* For the "help set language" command.  */
-  static char *language_set_doc = NULL;
+  char *language_set_doc = NULL;
 
   int i;
   struct ui_file *tmp_stream;
@@ -943,7 +943,6 @@ local or auto    Automatic setting based on source file\n"));
                          languages[i]->la_name + 1);
     }
 
-  xfree (language_set_doc);
   language_set_doc = ui_file_xstrdup (tmp_stream, NULL);
   ui_file_delete (tmp_stream);
 
@@ -955,6 +954,8 @@ Show the current source language."), NULL,
                        set_language_command,
                        show_language_command,
                        &setlist, &showlist);
+
+  xfree (language_set_doc);
 }
 
 /* Iterate through all registered languages looking for and calling
@@ -1044,7 +1045,7 @@ default_print_array_index (struct value *index_value, struct ui_file *stream,
 
 void
 default_get_string (struct value *value, gdb_byte **buffer, int *length,
-                   const char **charset)
+                   struct type **char_type, const char **charset)
 {
   error (_("Getting a string is unsupported in this language."));
 }
This page took 0.025773 seconds and 4 git commands to generate.