summaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.h
diff options
context:
space:
mode:
authorJason Molenda <jsm@bugshack.cygnus.com>1999-11-02 04:44:47 +0000
committerJason Molenda <jsm@bugshack.cygnus.com>1999-11-02 04:44:47 +0000
commitca799f40e93972d04247a5bbc76b749a2d462824 (patch)
treed0142d7a9db3d791008037a060e4336032339c66 /gdb/gdbserver/server.h
parent1f80975aceb82ecd4fc9bf4e988e6d1b7c7bbca1 (diff)
downloadgdb-ca799f40e93972d04247a5bbc76b749a2d462824.tar.gz
import gdb-1999-11-01 snapshot
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r--gdb/gdbserver/server.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index bfc89c7bbb7..c42a65c6c8f 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -36,7 +36,7 @@ int create_inferior ();
/* Target-specific variables */
-extern char registers[];
+extern char *registers;
/* Public variables in server.c */
@@ -71,3 +71,14 @@ void decode_M_packet PARAMS ((char *from, CORE_ADDR * mem_addr_ptr,
/* Functions from utils.c */
void perror_with_name PARAMS ((char *string));
+
+
+/* Maximum number of bytes to read/write at once. The value here
+ is chosen to fill up a packet (the headers account for the 32). */
+#define MAXBUFBYTES(N) (((N)-32)/2)
+
+/* Buffer sizes for transferring memory, registers, etc. Round up PBUFSIZ to
+ hold all the registers, at least. */
+#define PBUFSIZ ((REGISTER_BYTES > MAXBUFBYTES (2000)) \
+ ? (REGISTER_BYTES * 2 + 32) \
+ : 2000)