From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3670 invoked by alias); 18 Dec 2011 01:14:57 -0000 Received: (qmail 3654 invoked by uid 22791); 18 Dec 2011 01:14:56 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 18 Dec 2011 01:14:39 +0000 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id C298A1C0C156; Sun, 18 Dec 2011 02:14:33 +0100 (CET) X-Auth-Info: hZdYg9K8V4uGco5equDc3PqcOyHvm94K/gq9xFoly40= Received: from igel.home (ppp-88-217-116-174.dynamic.mnet-online.de [88.217.116.174]) by mail.mnet-online.de (Postfix) with ESMTPA id AC8B21C00054; Sun, 18 Dec 2011 02:14:33 +0100 (CET) Received: by igel.home (Postfix, from userid 501) id 49E81CA29C; Sun, 18 Dec 2011 02:14:33 +0100 (CET) From: Andreas Schwab To: gdb-patches@sourceware.org Subject: Only use ranged watchpoints when supported CC: Ulrich Weigand , Thiago Jung Bauermann , Sergio Durigan Junior X-Yow: Disco oil bussing will create a throbbing naugahide pipeline running straight to the tropics from the rug producing regions and devalue the dollar! Date: Sun, 18 Dec 2011 06:18:00 -0000 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-12/txt/msg00586.txt.bz2 This fixes all watchpoint regressions. Andreas. 2011-12-18 Andreas Schwab * ppc-linux-nat.c (create_watchpoint_request): Only use ranged watchpoints when supported. --- gdb/ppc-linux-nat.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/gdb/ppc-linux-nat.c b/gdb/ppc-linux-nat.c index dc7f152..cc29ad8 100644 --- a/gdb/ppc-linux-nat.c +++ b/gdb/ppc-linux-nat.c @@ -2010,7 +2010,8 @@ create_watchpoint_request (struct ppc_hw_breakpoint *p, CORE_ADDR addr, int len, int rw, struct expression *cond, int insert) { - if (len == 1) + if (len == 1 + || !(booke_debug_info.features & PPC_DEBUG_FEATURE_DATA_BP_RANGE)) { int use_condition; CORE_ADDR data_value; -- 1.7.8 -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."