From 7e5efdeb9b79a103e0ba9f928c29fb4bfff44eb5 Mon Sep 17 00:00:00 2001 From: uweigand Date: Tue, 12 Aug 2008 18:20:08 +0000 Subject: [PATCH] * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP. --- gdb/ChangeLog | 4 ++++ gdb/ppc-linux-nat.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f734aed9c7..5881b8a953 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2008-08-12 Ulrich Weigand + + * ppc-linux-nat.c (ppc_linux_get_hwcap): Really get AT_HWCAP. + 2008-08-12 Pedro Alves Add no-ack mode to the remote protocol --- optionally stop ACKing diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index c4652f7c35..db070b9a7f 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -835,7 +835,7 @@ unsigned long ppc_linux_get_hwcap (void) { CORE_ADDR field; - if (target_auxv_search (¤t_target, AT_PLATFORM, &field)) + if (target_auxv_search (¤t_target, AT_HWCAP, &field)) return (unsigned long) field; return 0; -- 2.11.0