From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Holcomb To: gdb-patches@sourceware.cygnus.com Subject: [PATCH] fix gdb.base/remote.c for small int targets Date: Mon, 03 Sep 2001 12:55:00 -0000 Message-id: References: X-SW-Source: 2001-09/msg00002.html Committed. On Thu, 30 Aug 2001, Jeff Holcomb wrote: > 2001-08-30 Jeff Holcomb > > * gdb.base/remote.c: Use a small buffer for targets with 16-bit > ints. > > Index: remote.c > =================================================================== > RCS file: /cvs/src/src/gdb/testsuite/gdb.base/remote.c,v > retrieving revision 1.2 > diff -u -p -r1.2 remote.c > --- remote.c 2001/07/17 21:47:19 1.2 > +++ remote.c 2001/08/31 05:05:33 > @@ -23,16 +23,16 @@ BEGIN { > > */ > > -#ifdef mc68hc11 > +#include > +/* For targets with 16bit int, use a 1k buffer. */ > +#if INT_MAX < 32768 > # define RANDOM_DATA_SIZE (1024) > -#endif > - > +#else > /* Use a character buffer to avoid byte order problems. 48k is > chosen so that the buffer required at least 3 16k packets but > targets often have no more than 64k of data. */ > /* If you change this data, you will also have to change the checks > for the data in remote.c */ > -#ifndef RANDOM_DATA_SIZE > # define RANDOM_DATA_SIZE (3 * 2048 * 8) > # define BIG_RANDOM_DATA > #endif