* [PATCH] clear init_ui_hook if no DISPLAY
@ 2001-10-03 16:48 Keith Seitz
2001-11-20 13:28 ` Keith Seitz
0 siblings, 1 reply; 2+ messages in thread
From: Keith Seitz @ 2001-10-03 16:48 UTC (permalink / raw)
To: Insight Maling List
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] clear init_ui_hook if no DISPLAY
2001-10-03 16:48 [PATCH] clear init_ui_hook if no DISPLAY Keith Seitz
@ 2001-11-20 13:28 ` Keith Seitz
0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2001-11-20 13:28 UTC (permalink / raw)
To: Insight Maling List
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-20 21:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-03 16:48 [PATCH] clear init_ui_hook if no DISPLAY Keith Seitz
2001-11-20 13:28 ` Keith Seitz
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).