OSDN Git Service

* generic/gdbtk.c (gdbtk_init): If DISPLAY is not set on Unix,
authorKeith Seitz <keiths@redhat.com>
Tue, 20 Nov 2001 21:27:14 +0000 (21:27 +0000)
committerKeith Seitz <keiths@redhat.com>
Tue, 20 Nov 2001 21:27:14 +0000 (21:27 +0000)
clear the init_ui_hook so that gdb will properly initialize
the cli.

gdb/gdbtk/ChangeLog
gdb/gdbtk/generic/gdbtk.c

index 3c2b138..a23d4fc 100644 (file)
@@ -1,3 +1,9 @@
+2001-11-20  Keith Seitz  <keiths@redhat.com>
+
+       * generic/gdbtk.c (gdbtk_init): If DISPLAY is not set on Unix,
+       clear the init_ui_hook so that gdb will properly initialize
+       the cli.
+
 2001-11-08  Martin M. Hunt  <hunt@redhat.com>
        * generic/gdbtk-cmds.c (gdb_eval): Add an optional
        format argument.
index 40d440e..1d1fc90 100644 (file)
@@ -370,7 +370,10 @@ gdbtk_init (argv0)
 
 #ifndef _WIN32
   if (getenv ("DISPLAY") == NULL)
-    return;
+    {
+      init_ui_hook = NULL;
+      return;
+    }
 #endif
 
   old_chain = make_cleanup (cleanup_init, 0);