2006-11-30 Keith Seitz <keiths@redhat.com>
+ 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.
+
+2006-11-30 Keith Seitz <keiths@redhat.com>
+
* library/targetselection.itb (constructor): "top" is unused.
Remove it.
(get_target_list): Use "scan" to parse "help target" output.
/* 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.
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. */