diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-14 13:53:04 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-06-14 13:53:04 +0000 |
commit | 173ae2ef83c91c270cbfc018031d7572f007c074 (patch) | |
tree | cc9460761e736dafc21bfacb191f5975fe3eb540 /gdb/gdbserver/linux-ppc-low.c | |
parent | ca2fb93bc47049659ba158ebf3c3ba8b8ceca628 (diff) | |
download | gdb-173ae2ef83c91c270cbfc018031d7572f007c074.tar.gz |
* linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
* linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
Diffstat (limited to 'gdb/gdbserver/linux-ppc-low.c')
-rw-r--r-- | gdb/gdbserver/linux-ppc-low.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c index 000b20fbf1d..48cf7c0917b 100644 --- a/gdb/gdbserver/linux-ppc-low.c +++ b/gdb/gdbserver/linux-ppc-low.c @@ -345,8 +345,10 @@ ppc_arch_setup (void) /* Only if the high bit of the MSR is set, we actually have a 64-bit inferior. */ - regcache = get_thread_regcache (current_inferior, 1); + regcache = new_register_cache (); + fetch_inferior_registers (regcache, find_regno ("msr")); collect_register_by_name (regcache, "msr", &msr); + free_register_cache (regcache); if (msr < 0) { ppc_get_hwcap (&ppc_hwcap); |