From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31429 invoked by alias); 20 Nov 2001 21:28:42 -0000 Mailing-List: contact insight-help@sourceware.cygnus.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sources.redhat.com Received: (qmail 31408 invoked from network); 20 Nov 2001 21:28:40 -0000 X-Authentication-Warning: makita.cygnus.com: keiths owned process doing -bs Date: Wed, 03 Oct 2001 16:48:00 -0000 From: Keith Seitz To: Insight Maling List Subject: [PATCH] clear init_ui_hook if no DISPLAY Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2001-q4/txt/msg00043.txt.bz2 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); 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);