* configure.srv [s390x-*-linux*]: Set srv_regobj to include both
authorUlrich Weigand <uweigand@de.ibm.com>
Wed, 27 Feb 2008 03:31:05 +0000 (03:31 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Wed, 27 Feb 2008 03:31:05 +0000 (03:31 +0000)
commitd61ddec43526d69a4625f46671b2c1b5bea9fa88
treecb622461dc0b6d50a64facfb420e54c883425565
parentd05b4ac3aadc6a37e44f1b80e190fe80cea4d6d7
* configure.srv [s390x-*-linux*]: Set srv_regobj to include both
reg-s390.o and reg-s390x.o.

* linux-low.c (new_inferior): New global variable.
(linux_create_inferior, linux_attach): Set it.
(linux_wait_for_process): Call the_low_target.arch_setup after the
target has stopped for the first time.
(initialize_low): Do not call the_low_target.arch_setup.

* linux-s390-low.c (s390_get_pc): Support bi-arch operation.
(s390_set_pc): Likewise.
(s390_arch_setup): New function.
(the_low_target): Use s390_arch_setup as arch_setup routine.

* regcache.c (realloc_register_cache): New function.
(set_register_cache): Call it for each existing regcache.
gdb/gdbserver/ChangeLog
gdb/gdbserver/configure.srv
gdb/gdbserver/linux-low.c
gdb/gdbserver/linux-s390-low.c
gdb/gdbserver/regcache.c