aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJeff Holcomb <jeffh@redhat.com>2001-09-03 19:54:33 +0000
committerJeff Holcomb <jeffh@redhat.com>2001-09-03 19:54:33 +0000
commit6db765ea4b5d42380391b712af52b288096ff382 (patch)
tree612f67299bd9d1f00ce901406c067bd2cea6795d /gdb
parentdd1e52a4ee78488a95e6960679cb16e991d2aef1 (diff)
downloadgdb-6db765ea4b5d42380391b712af52b288096ff382.zip
gdb-6db765ea4b5d42380391b712af52b288096ff382.tar.gz
gdb-6db765ea4b5d42380391b712af52b288096ff382.tar.bz2
2001-08-30 Jeff Holcomb <jeffh@redhat.com>
* gdb.base/remote.c: Use a small buffer for targets with 16-bit ints.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.base/remote.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 8f03646..1844e5c 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2001-08-30 Jeff Holcomb <jeffh@redhat.com>
+
+ * gdb.base/remote.c: Use a small buffer for targets with 16-bit
+ ints.
+
2001-08-30 Keith Seitz <keiths@redhat.com>
* lib/gdb.exp: Move all insight-related functionality into
diff --git a/gdb/testsuite/gdb.base/remote.c b/gdb/testsuite/gdb.base/remote.c
index e71c598..a43c40b 100644
--- a/gdb/testsuite/gdb.base/remote.c
+++ b/gdb/testsuite/gdb.base/remote.c
@@ -23,16 +23,16 @@ BEGIN {
*/
-#ifdef mc68hc11
+#include <limits.h>
+/* 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