diff options
author | Pedro Alves <palves@redhat.com> | 2010-01-21 22:10:18 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-01-21 22:10:18 +0000 |
commit | 3be029c76be094e709362153dd8861631e63a183 (patch) | |
tree | 3eeb29ff82ca970dfe7ed43ab12bb31caa52784a /gdb/gdbserver | |
parent | 53e5c8fee65d80d63b464ec455cce4f24f27dbd4 (diff) | |
download | gdb-3be029c76be094e709362153dd8861631e63a183.zip gdb-3be029c76be094e709362153dd8861631e63a183.tar.gz gdb-3be029c76be094e709362153dd8861631e63a183.tar.bz2 |
* linux-ppc-low.c (ppc_arch_setup): Adjust to regcache
changes.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r-- | gdb/gdbserver/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-ppc-low.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index fead2dd..e1ad397 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2010-01-21 Pedro Alves <pedro@codesourcery.com> + + * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes. + 2010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com> * linux-s390-low.c (s390_collect_ptrace_register) diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c index 5832dc7..10a1309 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); |