diff options
author | Mark Alexander <marka@cygnus> | 1996-08-13 02:30:34 +0000 |
---|---|---|
committer | Mark Alexander <marka@cygnus> | 1996-08-13 02:30:34 +0000 |
commit | cd21cbc400496ce398a801363a546653dfef8ff2 (patch) | |
tree | cce0907833cf2dba71e2adc011bf0710b1d38ff2 /gdb/sh-tdep.c | |
parent | 9d896be3060229521aa91c6467f09ae274912fb9 (diff) | |
download | gdb-cd21cbc400496ce398a801363a546653dfef8ff2.zip gdb-cd21cbc400496ce398a801363a546653dfef8ff2.tar.gz gdb-cd21cbc400496ce398a801363a546653dfef8ff2.tar.bz2 |
* 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.
(Fixes PR 10254)
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index e9f2d4b..7a405d2 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -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; } |