public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@cygnus.com>
To: Insight Maling List <insight@sources.redhat.com>
Subject: [PATCH] clear init_ui_hook if no DISPLAY
Date: Tue, 20 Nov 2001 13:28:00 -0000	[thread overview]
Message-ID: <Pine.GSO.4.33.0111201327140.20281-100000@makita.cygnus.com> (raw)
Message-ID: <20011120132800.3l7cpv_1mJMKtszEvY6xFNz-N8bXvNglyif_4U_qR_A@z> (raw)

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);

             reply	other threads:[~2001-11-20 13:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-03 16:48 Keith Seitz [this message]
2001-11-20 13:28 ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.33.0111201327140.20281-100000@makita.cygnus.com \
    --to=keiths@cygnus.com \
    --cc=insight@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).