diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-04-20 17:22:48 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-04-20 17:22:48 +0000 |
commit | ab81db5f0ebddb416443e70b380eef4991d89391 (patch) | |
tree | 022ea1386a6b2c015d465a7fcfd98af4e28ef177 /gdb/gdbserver/regcache.h | |
parent | 5f7227726a399f16acf8dc90e91d96d86c6feff7 (diff) | |
download | gdb-ab81db5f0ebddb416443e70b380eef4991d89391.tar.gz |
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/regcache.h')
-rw-r--r-- | gdb/gdbserver/regcache.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/gdbserver/regcache.h b/gdb/gdbserver/regcache.h index e71aee26e60..1b3b926a2c0 100644 --- a/gdb/gdbserver/regcache.h +++ b/gdb/gdbserver/regcache.h @@ -21,6 +21,14 @@ #ifndef REGCACHE_H #define REGCACHE_H +/* Create a new register cache for INFERIOR. */ + +void create_register_cache (struct inferior_info *inferior); + +/* Release all memory associated with the register cache for INFERIOR. */ + +void free_register_cache (struct inferior_info *inferior); + /* Convert all registers to a string in the currently specified remote format. */ |