diff options
author | Pedro Alves <pedro@codesourcery.com> | 2010-01-21 22:10:18 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2010-01-21 22:10:18 +0000 |
commit | be9e2037ab344da5f2b8f1521855a4636e9ec05f (patch) | |
tree | ae1df9fa3999c6b1c348f5e6e0ad9797b47bd2b0 /gdb/gdbserver/linux-ppc-low.c | |
parent | aabc2f4e201ad84e5330e8a383d9c376d8e87e57 (diff) | |
download | gdb-be9e2037ab344da5f2b8f1521855a4636e9ec05f.tar.gz |
* linux-ppc-low.c (ppc_arch_setup): Adjust to regcache
changes.
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 5832dc7ade7..10a1309e390 100644 --- a/gdb/gdbserver/linux-ppc-low.c +++ b/gdb/gdbserver/linux-ppc-low.c @@ -335,6 +335,7 @@ ppc_arch_setup (void) { #ifdef __powerpc64__ long msr; + struct regcache *regcache; /* On a 64-bit host, assume 64-bit inferior process with no AltiVec registers. Reset ppc_hwcap to ensure that the @@ -344,7 +345,8 @@ ppc_arch_setup (void) /* Only if the high bit of the MSR is set, we actually have a 64-bit inferior. */ - collect_register_by_name ("msr", &msr); + regcache = get_thread_regcache (current_inferior, 1); + collect_register_by_name (regcache, "msr", &msr); if (msr < 0) { ppc_get_hwcap (&ppc_hwcap); |