From mboxrd@z Thu Jan 1 00:00:00 1970 From: Keith Seitz To: Insight Maling List Subject: [PATCH] clear init_ui_hook if no DISPLAY Date: Tue, 20 Nov 2001 13:28:00 -0000 Message-ID: X-SW-Source: 2001-q4/msg00344.html Message-ID: <20011120132800.3l7cpv_1mJMKtszEvY6xFNz-N8bXvNglyif_4U_qR_A@z> 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 * 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);