diff options
author | Daniel Jacobowitz <drow@false.org> | 2002-04-20 17:22:48 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2002-04-20 17:22:48 +0000 |
commit | c04a1aa88fa42d61fafa570de6ab6ab1b7a12d27 (patch) | |
tree | ccf5d334c0eeb02b0a1f16fae3bc3641544a7d0c /gdb/gdbserver/regcache.h | |
parent | 611cb4a54268cbb8f25175dd4900fff87eae161b (diff) | |
download | fsf-binutils-gdb-c04a1aa88fa42d61fafa570de6ab6ab1b7a12d27.zip fsf-binutils-gdb-c04a1aa88fa42d61fafa570de6ab6ab1b7a12d27.tar.gz fsf-binutils-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/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 e71aee2..1b3b926 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. */ |