* tui/tui-win.c (tui_update_gdb_sizes): Use tui_term_width() and
[deliverable/binutils-gdb.git] / gdb / tui / tui-interp.c
index b5c3b4019629927b9a56de969fd1432fe71b0101..aeb204740b827c580185794b728365f41dba1910 100644 (file)
@@ -106,10 +106,10 @@ tui_display_prompt_p (void *data)
     return 1;
 }
 
-static int
+static struct gdb_exception
 tui_exec (void *data, const char *command_str)
 {
-  internal_error (__FILE__, __LINE__, "tui_exec called");
+  internal_error (__FILE__, __LINE__, _("tui_exec called"));
 }
 
 
@@ -199,13 +199,13 @@ _initialize_tui_interp (void)
 
   /* Create a default uiout builder for the TUI. */
   tui_out = tui_out_new (gdb_stdout);
-  interp_add (interp_new ("tui", NULL, tui_out, &procs));
-  if (interpreter_p && strcmp (interpreter_p, "tui") == 0)
+  interp_add (interp_new (INTERP_TUI, NULL, tui_out, &procs));
+  if (interpreter_p && strcmp (interpreter_p, INTERP_TUI) == 0)
     tui_start_enabled = 1;
 
   if (interpreter_p && strcmp (interpreter_p, INTERP_CONSOLE) == 0)
     {
       xfree (interpreter_p);
-      interpreter_p = xstrdup ("tui");
+      interpreter_p = xstrdup (INTERP_TUI);
     }
 }
This page took 0.025789 seconds and 4 git commands to generate.