Thu May 21 13:56:24 1998 Elena Zannoni <ezannoni@kwikemart.cygnus.com>
authorElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 21 May 1998 18:03:25 +0000 (18:03 +0000)
committerElena Zannoni <ezannoni@kwikemart.cygnus.com>
Thu, 21 May 1998 18:03:25 +0000 (18:03 +0000)
        * gdbtk.c: reinserted the changes that were accidentally deleted:
        (_initialize_gdbtk): Use correct device names in
        cygwin-specific call (cosmetic change).
        (gdbtk_ignorable_warning): removed va_list parameter,
        which was unused.
        (_initialize_gdbtk): add cygwin32 specific code to
        allow `gdb -nw' to work when specified specified from a windows
        console-mode command line.

        * ChangeLog: moved Chris Faylor's comment to ChangeLog-gdbtk

gdb/ChangeLog
gdb/ChangeLog-gdbtk
gdb/gdbtk.c

index 101eabc60982e6b433e5fe30881186cfbd9b84a8..201ac5129c322cb9721e3e133d7713c50771f4c9 100644 (file)
@@ -1,3 +1,5 @@
+Thu May 21 13:56:24 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+
 Wed May 20 15:29:41 1998  Gavin Koch  <gavin@cygnus.com>
 
        * mips/tm-tx39.h (MIPS_DEFAULT_FPU_TYPE): Defined as MIPS_FPU_NONE.
@@ -322,12 +324,6 @@ Thu Apr 23 00:32:08 1998  Tom Tromey  <tromey@cygnus.com>
        * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_STPCPY, HAVE_GETTEXT,
        HAVE_LC_MESSAGES): Define.
 
-Wed Apr 22 21:17:35 1998  Christopher Faylor <cgf@cygnus.com>
-
-       * gdbtk.c (_initialize_gdbtk): add cygwin32 specific code to
-       allow `gdb -nw' to work when specified specified from a windows
-       console-mode command line.
-
 Wed Apr 22 15:38:56 1998  Tom Tromey  <tromey@cygnus.com>
 
        * configure: Rebuilt.
index 17c744ac31de08669e586c156ec3bb678afe8547..1113816cb20b0643bd40177d58fb6cd7316f0208 100644 (file)
@@ -1,10 +1,20 @@
+Thu May 21 13:56:24 1998  Elena Zannoni  <ezannoni@kwikemart.cygnus.com>
+       
+       * gdbtk.c: reinserted the changes that were accidentally deleted:
+       (_initialize_gdbtk): Use correct device names in
+       cygwin-specific call (cosmetic change). 
+        (gdbtk_ignorable_warning): removed va_list parameter,
+       which was unused.
+        (_initialize_gdbtk): add cygwin32 specific code to
+       allow `gdb -nw' to work when specified specified from a windows
+       console-mode command line.
+
 Wed May 13 11:12:58 1998  James Ingham  <jingham@leda.cygnus.com>
 
        * gdbtk.c: Fixed a goof in the definition of the gdb_get_args &
        gdb_get_locals Tcl commands.  Moved the previous ChangeLog entry
        from ChangeLog to ChangeLog-gdbtk (here)...
        
-
 Tue May 12 13:29:20 1998  Jeff Holcomb  <jeffh@cygnus.com>
 
        * Makefile.in (install-only): Add images/icons.txt and
@@ -17,7 +27,7 @@ Tue May 12 12:03:16 1998  James Ingham  <jingham@leda.cygnus.com>
        catch_errors.  This is just a bandaid while I rewrite the
        string-based commands to use the object format.
 
-       Tue May  5 09:30:25 1998  Christopher Faylor <cgf@cygnus.com>
+Tue May  5 09:30:25 1998  Christopher Faylor <cgf@cygnus.com>
 
        * gdbtk.c (_initialize_gdbtk): Use correct device names in
        cygwin-specific call (cosmetic change). 
@@ -31,6 +41,12 @@ Thu Apr 23 19:01:05 1998  Keith Seitz  <keiths@onions.cygnus.com>
 
        * Makefile.in (install-only): Install help files.
 
+Wed Apr 22 21:17:35 1998  Christopher Faylor <cgf@cygnus.com>
+
+       * gdbtk.c (_initialize_gdbtk): add cygwin32 specific code to
+       allow `gdb -nw' to work when specified specified from a windows
+       console-mode command line.
+
 Wed Apr 15 11:23:53 1998  Stan Shebs  <shebs@andros.cygnus.com>
 
        * gdbtcl: Remove directory and contents, this version of
index 96aaa97cf5ccc396ab80f99aa816e3eb87caf7e2..6027cdbec362bd3a06f9ebc8399554d41a4edba3 100644 (file)
@@ -98,7 +98,7 @@ static void gdbtk_flush PARAMS ((FILE *));
 static void gdbtk_fputs PARAMS ((const char *, FILE *));
 static int gdbtk_query PARAMS ((const char *, va_list));
 static void gdbtk_warning PARAMS ((const char *, va_list));
-static void gdbtk_ignorable_warning PARAMS ((const char *, va_list));
+static void gdbtk_ignorable_warning PARAMS ((const char *));
 static char *gdbtk_readline PARAMS ((char *));
 static void gdbtk_init PARAMS ((char *));
 static void tk_command_loop PARAMS ((void));
@@ -329,14 +329,13 @@ gdbtk_warning (warning, args)
 }
 
 static void
-gdbtk_ignorable_warning (warning, args)
+gdbtk_ignorable_warning (warning)
      const char *warning;
-     va_list args;
 {
   char buf[200], *merge[2];
   char *command;
 
-  vsprintf (buf, warning, args);
+  sprintf (buf, warning);
   merge[0] = "gdbtk_tcl_ignorable_warning";
   merge[1] = buf;
   command = Tcl_Merge (2, merge);
@@ -3260,7 +3259,7 @@ gdb_loadfile (clientData, interp, objc, objv)
       mtime = bfd_get_mtime(exec_bfd);
  
   if (mtime && mtime < st.st_mtime)
-     gdbtk_ignorable_warning("Source file is more recent than executable.\n", (va_list)0);
+     gdbtk_ignorable_warning("Source file is more recent than executable.\n");
 
 
   /* Source linenumbers don't appear to be in order, and a sort is */
@@ -3456,4 +3455,31 @@ _initialize_gdbtk ()
 
       init_ui_hook = gdbtk_init;
     }
+#ifdef __CYGWIN32__
+  else
+    {
+      DWORD ft = GetFileType (GetStdHandle (STD_INPUT_HANDLE));
+      void cygwin32_attach_handle_to_fd (char *, int, HANDLE, int, int);
+
+      switch (ft)
+       {
+         case FILE_TYPE_DISK:
+         case FILE_TYPE_CHAR:
+         case FILE_TYPE_PIPE:
+           break;
+         default:
+           AllocConsole();
+           cygwin32_attach_handle_to_fd ("/dev/conin", 0,
+                                         GetStdHandle (STD_INPUT_HANDLE),
+                                         1, GENERIC_READ);
+           cygwin32_attach_handle_to_fd ("/dev/conout", 1,
+                                         GetStdHandle (STD_OUTPUT_HANDLE),
+                                         0, GENERIC_WRITE);
+           cygwin32_attach_handle_to_fd ("/dev/conout", 2,
+                                         GetStdHandle (STD_ERROR_HANDLE),
+                                         0, GENERIC_WRITE);
+           break;
+       }
+    }
+#endif
 }
This page took 0.028342 seconds and 4 git commands to generate.