OSDN Git Service

insight/299:
authorkseitz <kseitz>
Fri, 1 Dec 2006 02:09:23 +0000 (02:09 +0000)
committerkseitz <kseitz>
Fri, 1 Dec 2006 02:09:23 +0000 (02:09 +0000)
        * 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.

gdb/gdbtk/ChangeLog
gdb/gdbtk/generic/gdbtk.c

index ed01efb..9c5842c 100644 (file)
@@ -1,5 +1,12 @@
 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.
index 457f970..25cbed8 100644 (file)
@@ -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. */