2005-11-07 Andrew Stubbs <andrew.stubbs@st.com>
authorAndrew Stubbs <andrew.stubbs@st.com>
Mon, 7 Nov 2005 12:46:38 +0000 (12:46 +0000)
committerAndrew Stubbs <andrew.stubbs@st.com>
Mon, 7 Nov 2005 12:46:38 +0000 (12:46 +0000)
* main.c (main): Use INTERP_TUI instead of "tui".
Set interpreter to INTERP_INSIGHT when '-w' given.
* interps.h (INTERP_INSIGHT): New define.
* tui/tui-interp.c (_initialize_tui_interp): Use INTERP_TUI instead
of "tui".

gdb/interps.h
gdb/main.c
gdb/tui/tui-interp.c

index 858c1e44309001239438f17380ce7ac0f98f7fa7..4d0250e3b484f6a3bfe8e29ac5b2af2c35cf0d48 100644 (file)
@@ -76,5 +76,6 @@ extern void clear_interpreter_hooks (void);
 #define INTERP_MI3             "mi3"
 #define INTERP_MI              "mi"
 #define INTERP_TUI             "tui"
+#define INTERP_INSIGHT         "insight"
 
 #endif
index 486b0ac5782ba122f56c8828703d461d64e9a946..05d1d5fff90a96cc2b1430d97dc1f40fbf2e760a 100644 (file)
@@ -350,11 +350,16 @@ captured_main (void *data)
          case OPT_TUI:
            /* --tui is equivalent to -i=tui.  */
            xfree (interpreter_p);
-           interpreter_p = xstrdup ("tui");
+           interpreter_p = xstrdup (INTERP_TUI);
            break;
          case OPT_WINDOWS:
            /* FIXME: cagney/2003-03-01: Not sure if this option is
                actually useful, and if it is, what it should do.  */
+#ifdef GDBTK
+           /* --windows is equivalent to -i=insight.  */
+           xfree (interpreter_p);
+           interpreter_p = xstrdup (INTERP_INSIGHT);
+#endif
            use_windows = 1;
            break;
          case OPT_NOWINDOWS:
index 17dda51d8caa715dbdb1149088b110e785b9eb10..aeb204740b827c580185794b728365f41dba1910 100644 (file)
@@ -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.033054 seconds and 4 git commands to generate.