2002-04-20 Daniel Jacobowitz <drow@mvista.com>
authorDaniel Jacobowitz <drow@false.org>
Sat, 20 Apr 2002 17:22:48 +0000 (17:22 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sat, 20 Apr 2002 17:22:48 +0000 (17:22 +0000)
commitc04a1aa88fa42d61fafa570de6ab6ab1b7a12d27
treeccf5d334c0eeb02b0a1f16fae3bc3641544a7d0c
parent611cb4a54268cbb8f25175dd4900fff87eae161b
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.
gdb/ChangeLog
gdb/gdbserver/inferiors.c
gdb/gdbserver/regcache.c
gdb/gdbserver/regcache.h
gdb/gdbserver/server.h