* gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
gracefully degrade to using command line interface if none is found.
This commit is contained in:
parent
3c72ab7035
commit
fe58c81f5c
2 changed files with 13 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
Fri Aug 23 00:44:57 1996 Fred Fish <fnf@ninemoons.com>
|
||||||
|
|
||||||
|
* gdbtk.c (gdbtk_init): Check for a DISPLAY env variable and
|
||||||
|
gracefully degrade to using command line interface if none is
|
||||||
|
found.
|
||||||
|
|
||||||
Wed Aug 21 16:31:27 1996 Fred Fish <fnf@rtl.cygnus.com>
|
Wed Aug 21 16:31:27 1996 Fred Fish <fnf@rtl.cygnus.com>
|
||||||
|
|
||||||
* valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
|
* valprint.c (print_longest): Test for CC_HAS_LONG_LONG as well as
|
||||||
|
|
|
@ -1240,6 +1240,13 @@ gdbtk_init ()
|
||||||
struct sigaction action;
|
struct sigaction action;
|
||||||
static sigset_t nullsigmask = {0};
|
static sigset_t nullsigmask = {0};
|
||||||
|
|
||||||
|
/* If there is no DISPLAY environment variable, Tk_Init below will fail,
|
||||||
|
causing gdb to abort. If instead we simply return here, gdb will
|
||||||
|
gracefully degrade to using the command line interface. */
|
||||||
|
|
||||||
|
if (getenv ("DISPLAY") == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
old_chain = make_cleanup (cleanup_init, 0);
|
old_chain = make_cleanup (cleanup_init, 0);
|
||||||
|
|
||||||
/* First init tcl and tk. */
|
/* First init tcl and tk. */
|
||||||
|
|
Loading…
Add table
Reference in a new issue