* values.c (unpack_double): Make it compile with MSVC++ 2.x.
authorMark Alexander <marka@cygnus>
Thu, 19 Dec 1996 17:45:57 +0000 (17:45 +0000)
committerMark Alexander <marka@cygnus>
Thu, 19 Dec 1996 17:45:57 +0000 (17:45 +0000)
* remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g.
when using MSVC++.
(common_open): Fix help string.

gdb/ChangeLog
gdb/remote-mips.c
gdb/values.c

index 170faa6a8ba9a1d64ba2faaa3fb96dcab77b69da..6b67e7876baeb4f21951dddb679974b8380162e8 100644 (file)
@@ -1,3 +1,10 @@
+Thu Dec 19 09:38:56 1996  Mark Alexander  <marka@cygnus.com>
+
+       * values.c (unpack_double): Make it compile with MSVC++ 2.x.
+       * remote-mips.c (S_IROTH): Define if not defined by stat.h, e.g.
+       when using MSVC++.
+       (common_open): Fix help string.
+
 Sat Dec 14 20:50:01 1996  Mark Alexander  <marka@cygnus.com>
 
        * mips-tdep.c (mips_push_arguments): Handle floating point args.
index ea921738386fd309d50044811fb579adbebc477c..11d0e2b428fbc1d18b45abefae6195e563c3bc1a 100644 (file)
@@ -40,6 +40,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include <varargs.h>
 #endif
 
+/* Microsoft C's stat.h doesn't define all the POSIX file modes.  */
+#ifndef S_IROTH
+#define S_IROTH S_IREAD
+#endif
+
 extern void mips_set_processor_type_command PARAMS ((char *, int));
 
 \f
@@ -1457,8 +1462,8 @@ device is attached to the target board (e.g., /dev/ttya).\n"
 "temporary file to be used by GDB for downloads as the second argument.\n"
 "This filename must be in the form host:filename, where host is the name\n"
 "of the host running the TFTP server, and the file must be readable by the\n"
-"world.  If the local name of the temporary file differs from the name as\n",
-"seen from the board via TFTP, specify that name as the third parameter\n");
+"world.  If the local name of the temporary file differs from the name as\n"
+"seen from the board via TFTP, specify that name as the third parameter.\n");
 
   /* Parse the serial port name, the optional TFTP name, and the
      optional local TFTP name.  */
index bfb010837bac2ad5a591911516ec8f3bc1e63b81..afd8b0341a6f90eea3448ec0bd2650e304e6fc6c 100644 (file)
@@ -678,7 +678,7 @@ unpack_double (type, valaddr, invp)
 #ifndef _MSC_VER
       return (ULONGEST) unpack_long (type, valaddr);
 #else
-#if (_MSC_VER > 800)
+#if (_MSC_VER > 900)
       return (ULONGEST) unpack_long (type, valaddr);
 #else
       /* FIXME!!! msvc22 doesn't support unsigned __int64 -> double */
This page took 0.02849 seconds and 4 git commands to generate.