From c9b2f845a54944b7da65614facae0541c80a0999 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 21 Apr 2008 20:31:22 +0000 Subject: [PATCH] * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the initial call to init_register_ppc64. --- gdb/gdbserver/ChangeLog | 5 +++++ gdb/gdbserver/linux-ppc-low.c | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index 0fde4b9d5f4..7b97dfc9d60 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,8 @@ +2008-04-21 Ulrich Weigand + + * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the + initial call to init_register_ppc64. + 2008-04-21 Ulrich Weigand * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into single diff --git a/gdb/gdbserver/linux-ppc-low.c b/gdb/gdbserver/linux-ppc-low.c index 70f25581016..4c3e4efc4bf 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. */ -- 2.30.2