* remote.c: Make remote_write_size public.
authorMark Alexander <marka@cygnus>
Tue, 13 Aug 1996 02:30:34 +0000 (02:30 +0000)
committerMark Alexander <marka@cygnus>
Tue, 13 Aug 1996 02:30:34 +0000 (02:30 +0000)
* sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
to prevent packet errors with some versions of CMON.
(Fixes PR 10254)

gdb/ChangeLog
gdb/sh-tdep.c

index 28459f24b17a91240777ba662fac8b4404d5ef2e..1cff938ba7a5939061e7388e63a09df0843accaf 100644 (file)
@@ -1,3 +1,9 @@
+Mon Aug 12 19:19:00 1996  Mark Alexander  <marka@cygnus.com>
+
+       * remote.c: Make remote_write_size public.
+       * sh-tdep.c (_initialize_sh_tdep): Set remote_write_size to 300
+       to prevent packet errors with some versions of CMON.
+
 Mon Aug 12 16:20:58 1996  Stu Grossman  (grossman@critters.cygnus.com)
 
        * defs.h:  Define CONST_PTR as blank if compiling with Microsoft
index e9f2d4b8e3a211ead560757610fd710897c49029..7a405d29057f5cbc4f5e263ba901a0bd88ef713f 100644 (file)
@@ -32,6 +32,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "value.h"
 #include "dis-asm.h"
 
+extern int remote_write_size;  /* in remote.c */
+
 /* Default to the original SH.  */
 
 #define DEFAULT_SH_TYPE "sh"
@@ -448,4 +450,8 @@ Set this to be able to access processor-type-specific registers.\n\
   sh_set_processor_type_command (strsave (DEFAULT_SH_TYPE), 0);
 
   add_com ("regs", class_vars, show_regs, "Print all registers");
+
+  /* Reduce the remote write size because some CMONs can't take
+    more than 400 bytes in a packet.  300 seems like a safe bet.  */
+  remote_write_size = 300;
 }
This page took 0.027365 seconds and 4 git commands to generate.