Removed EINVAL reference in remote-mips.c, and put a hardcoded 22 in its
authorGeoffrey Noer <noer@cygnus>
Tue, 28 May 1996 23:20:12 +0000 (23:20 +0000)
committerGeoffrey Noer <noer@cygnus>
Tue, 28 May 1996 23:20:12 +0000 (23:20 +0000)
place which reflects what the boards return.

gdb/ChangeLog
gdb/remote-mips.c

index c8e1b1a7bd6d8225c7baad0fc3ae80ebeaa6a6c2..3bdff31851172363135ba6af20ba6f02a7583790 100644 (file)
@@ -1,3 +1,10 @@
+Tue May 28 16:15:47 1996  Geoffrey Noer  <noer@cygnus.com>
+
+       * remote-mips.c: cannot use EINVAL for breakpoint test since
+       its value varies for different hosts (e.g. go32's is 19, while
+       sunos is 22).  Changed to hardcoded 22 since that is what the
+       mips boards return.
+
 Tue May 28 11:14:58 1996  Tom Tromey  <tromey@creche.cygnus.com>
 
        * configure: Regenerated.
index 13fce91dc6548b944463bfd29526fa103c664c70..f57c47f57bfe5a90a2e3bfa04a3d8de9df5bfc7e 100644 (file)
@@ -2307,7 +2307,7 @@ common_breakpoint (cmd, addr, mask, flags)
 
   if (rerrflg != 0)
     {
-      if (rresponse != EINVAL)
+      if (rresponse != 22) /* invalid argument */
        fprintf_unfiltered (stderr, "common_breakpoint (0x%x):  Got error: 0x%x\n",
                            addr, rresponse);
       return 1;