aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-04-21 20:31:22 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-04-21 20:31:22 +0000
commitc9b2f845a54944b7da65614facae0541c80a0999 (patch)
tree7920f240d2878a5d98621f69f7ddf7bb212c96b7
parent131eb6b75e45eec24860ff6972f23b0e723db75c (diff)
downloadgdb-c9b2f845a54944b7da65614facae0541c80a0999.zip
gdb-c9b2f845a54944b7da65614facae0541c80a0999.tar.gz
gdb-c9b2f845a54944b7da65614facae0541c80a0999.tar.bz2
* linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
initial call to init_register_ppc64.
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/linux-ppc-low.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 0fde4b9..7b97dfc 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
+ * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
+ initial call to init_register_ppc64.
+
+2008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
+
* configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single
powerpc*-*-linux* case.
(s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c
index 70f2558..4c3e4ef 100644
--- a/gdb/gdbserver/linux-ppc-low.c
+++ b/gdb/gdbserver/linux-ppc-low.c
@@ -223,8 +223,11 @@ ppc_arch_setup (void)
#ifdef __powerpc64__
long msr;
- /* On a 64-bit host, assume 64-bit inferior process. */
+ /* On a 64-bit host, assume 64-bit inferior process with no
+ AltiVec registers. Reset ppc_hwcap to ensure that the
+ collect_register call below does not fail. */
init_registers_ppc64 ();
+ ppc_hwcap = 0;
/* Only if the high bit of the MSR is set, we actually have
a 64-bit inferior. */