aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r--gdb/gdbserver/server.h29
1 files changed, 25 insertions, 4 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 2e0b7ba..6202b0f 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -1,5 +1,5 @@
/* Common definitions for remote server for GDB.
- Copyright 1993, 1995, 1997, 1998, 1999, 2000
+ Copyright 1993, 1995, 1997, 1998, 1999, 2000, 2002
Free Software Foundation, Inc.
This file is part of GDB.
@@ -19,7 +19,22 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "defs.h"
+#ifndef SERVER_H
+#define SERVER_H
+
+#include "config.h"
+#include <stdarg.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <errno.h>
+
+
+/* FIXME: Both of these should be autoconf'd for. */
+#define NORETURN
+typedef long long CORE_ADDR;
+
+#include "regcache.h"
+
#include <setjmp.h>
/* Target-specific functions */
@@ -73,6 +88,10 @@ void decode_M_packet (char *from, CORE_ADDR * mem_addr_ptr,
/* Functions from utils.c */
void perror_with_name (char *string);
+void error (const char *string,...);
+void fatal (const char *string,...);
+void warning (const char *string,...);
+
/* Maximum number of bytes to read/write at once. The value here
@@ -81,6 +100,8 @@ void perror_with_name (char *string);
/* 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) \
+#define PBUFSIZ ((registers_length () + 32 > 2000) \
+ ? (registers_length () + 32) \
: 2000)
+
+#endif /* SERVER_H */