* config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call
[deliverable/binutils-gdb.git] / gdb / main.c
index ad4e3b7f5982d5faecdee1e44a664a2d5f23ce40..57cf13603ab19fc2d96a95690be16f7a08968d28 100644 (file)
 #include "event-loop.h"
 #include "ui-out.h"
 
-#if defined (TUI)
-/* FIXME: cagney/2000-01-31: This #include is to allow older code such
-   as that found in the TUI to continue to build. */
-#include "tui/tui-file.h"
-#endif
-
 /* If nonzero, display time usage both at startup and for each command.  */
 
 int display_time;
@@ -90,10 +84,6 @@ static void print_gdb_help (struct ui_file *);
 extern int enable_external_editor;
 extern char *external_editor_command;
 
-#ifdef __CYGWIN__
-#include <sys/cygwin.h>                /* for cygwin32_conv_to_posix_path */
-#endif
-
 /* Call command_loop.  If it happens to return, pass that through as a
    non-zero return status. */
 
@@ -199,17 +189,10 @@ captured_main (void *data)
   getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
   current_directory = gdb_dirbuf;
 
-#if defined (TUI)
-  gdb_stdout = tui_fileopen (stdout);
-  gdb_stderr = tui_fileopen (stderr);
-  gdb_stdlog = gdb_stdout;     /* for moment */
-  gdb_stdtarg = gdb_stderr;    /* for moment */
-#else
   gdb_stdout = stdio_fileopen (stdout);
   gdb_stderr = stdio_fileopen (stderr);
   gdb_stdlog = gdb_stderr;     /* for moment */
   gdb_stdtarg = gdb_stderr;    /* for moment */
-#endif
 
   /* initialize error() */
   error_init ();
@@ -486,12 +469,6 @@ extern int gdbtk_test (char *);
       quiet = 1;
   }
 
-#if defined(TUI)
-  /* Should this be moved to tui-top.c:_initialize_tui()? */
-  if (tui_version)
-    init_ui_hook = tuiInit;
-#endif
-
   /* Initialize all files.  Give the interpreter a chance to take
      control of the console via the init_ui_hook()) */
   gdb_init (argv[0]);
@@ -534,21 +511,7 @@ extern int gdbtk_test (char *);
      *before* all the command line arguments are processed; it sets
      global parameters, which are independent of what file you are
      debugging or what directory you are in.  */
-#ifdef __CYGWIN__
-  {
-    char *tmp = getenv ("HOME");
-
-    if (tmp != NULL)
-      {
-       homedir = (char *) alloca (PATH_MAX + 1);
-       cygwin32_conv_to_posix_path (tmp, homedir);
-      }
-    else
-      homedir = NULL;
-  }
-#else
   homedir = getenv ("HOME");
-#endif
   if (homedir)
     {
       homeinit = (char *) alloca (strlen (homedir) +
This page took 0.024071 seconds and 4 git commands to generate.