diff options
author | Keith Seitz <keiths@redhat.com> | 2006-12-01 02:09:24 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2006-12-01 02:09:24 +0000 |
commit | 618271bb9d51e1b9c5c252e2d44d344e13de63f3 (patch) | |
tree | 2d26427c4d114f4c3945486775546509759acfb4 /gdb/gdbtk/generic | |
parent | 67f0ec65fe59e8d6b93cb8e2cec071474b49cda7 (diff) | |
download | gdb-618271bb9d51e1b9c5c252e2d44d344e13de63f3.tar.gz |
insight/299:
* generic/gdbtk.c (gdbtk_init): Don't check if DISPLAY is set,
it isn't needed anymore. Gdb will not abort, and Tk_Init will
fail gracefully.
Diffstat (limited to 'gdb/gdbtk/generic')
-rw-r--r-- | gdb/gdbtk/generic/gdbtk.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/gdb/gdbtk/generic/gdbtk.c b/gdb/gdbtk/generic/gdbtk.c index 457f9703d1f..25cbed8e4a0 100644 --- a/gdb/gdbtk/generic/gdbtk.c +++ b/gdb/gdbtk/generic/gdbtk.c @@ -1,5 +1,5 @@ /* Startup code for Insight - Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003, 2004 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 2001, 2002, 2003, 2004, 2006 Free Software Foundation, Inc. Written by Stu Grossman <grossman@cygnus.com> of Cygnus Support. @@ -358,17 +358,6 @@ gdbtk_init (void) const char **exec_path; CONST char *internal_exec_name; - /* 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. */ - -#ifndef _WIN32 - if (getenv ("DISPLAY") == NULL) - { - return; - } -#endif - old_chain = make_cleanup (cleanup_init, 0); /* First init tcl and tk. */ |