This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] clear init_ui_hook if no DISPLAY


Hi,

The following patch will allow Insight-enabled gdb's to run as "gdb -nw"
when DISPLAY is not set (on unix boxen).

Keith

ChangeLog
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.

Patch
Index: generic/gdbtk.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/generic/gdbtk.c,v
retrieving revision 1.23
diff -u -p -r1.23 gdbtk.c
--- gdbtk.c	2001/10/04 15:01:35	1.23
+++ gdbtk.c	2001/11/20 21:26:44
@@ -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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]