aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/server.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-04-20 17:22:48 +0000
committerDaniel Jacobowitz <drow@false.org>2002-04-20 17:22:48 +0000
commitc04a1aa88fa42d61fafa570de6ab6ab1b7a12d27 (patch)
treeccf5d334c0eeb02b0a1f16fae3bc3641544a7d0c /gdb/gdbserver/server.h
parent611cb4a54268cbb8f25175dd4900fff87eae161b (diff)
downloadgdb-c04a1aa88fa42d61fafa570de6ab6ab1b7a12d27.zip
gdb-c04a1aa88fa42d61fafa570de6ab6ab1b7a12d27.tar.gz
gdb-c04a1aa88fa42d61fafa570de6ab6ab1b7a12d27.tar.bz2
2002-04-20 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/inferiors.c (struct inferior_info): Add regcache_data. (add_inferior): Call create_register_cache. (clear_inferiors): Call free_register_cache. (inferior_regcache_data, set_inferior_regcache_data): New functions. * gdbserver/regcache.c (struct inferior_regcache_data): New. (registers): Remove. (get_regcache): New function. (create_register_cache, free_register_cache): New functions. (set_register_cache): Don't initialize the register cache here. (registers_to_string, registers_from_string, register_data): Call get_regcache. * gdbserver/regcache.h: Add prototypes. * gdbserver/server.h: Likewise.
Diffstat (limited to 'gdb/gdbserver/server.h')
-rw-r--r--gdb/gdbserver/server.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/gdbserver/server.h b/gdb/gdbserver/server.h
index 0d08422..32b90b5 100644
--- a/gdb/gdbserver/server.h
+++ b/gdb/gdbserver/server.h
@@ -54,6 +54,9 @@
least the size of a (void *). */
typedef long long CORE_ADDR;
+/* Opaque inferior process information. */
+struct inferior_info;
+
#include "regcache.h"
#include "gdb/signals.h"
@@ -70,14 +73,14 @@ extern char *registers;
/* From inferiors.c. */
-struct inferior_info;
extern struct inferior_info *current_inferior;
extern int signal_pid;
void add_inferior (int pid);
void clear_inferiors (void);
void *inferior_target_data (struct inferior_info *);
void set_inferior_target_data (struct inferior_info *, void *);
-
+void *inferior_regcache_data (struct inferior_info *);
+void set_inferior_regcache_data (struct inferior_info *, void *);
/* Public variables in server.c */