From patchwork Fri Jul 22 17:56:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Weigand X-Patchwork-Id: 3057 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E563223F18 for ; Fri, 22 Jul 2011 17:56:50 +0000 (UTC) Received: from mail-qy0-f180.google.com (mail-qy0-f180.google.com [209.85.216.180]) by fiordland.canonical.com (Postfix) with ESMTP id B496BA18408 for ; Fri, 22 Jul 2011 17:56:50 +0000 (UTC) Received: by qyk30 with SMTP id 30so1769376qyk.11 for ; Fri, 22 Jul 2011 10:56:50 -0700 (PDT) Received: by 10.229.68.200 with SMTP id w8mr1615700qci.114.1311357410210; Fri, 22 Jul 2011 10:56:50 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs21103qcb; Fri, 22 Jul 2011 10:56:50 -0700 (PDT) Received: by 10.227.28.206 with SMTP id n14mr1583114wbc.4.1311357409301; Fri, 22 Jul 2011 10:56:49 -0700 (PDT) Received: from mtagate7.uk.ibm.com (mtagate7.uk.ibm.com [194.196.100.167]) by mx.google.com with ESMTPS id fh19si4987918wbb.11.2011.07.22.10.56.48 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jul 2011 10:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of uweigand@de.ibm.com designates 194.196.100.167 as permitted sender) client-ip=194.196.100.167; Authentication-Results: mx.google.com; spf=pass (google.com: domain of uweigand@de.ibm.com designates 194.196.100.167 as permitted sender) smtp.mail=uweigand@de.ibm.com Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate7.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p6MHumvD023390 for ; Fri, 22 Jul 2011 17:56:48 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p6MHumxn2580526 for ; Fri, 22 Jul 2011 18:56:48 +0100 Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p6MHumUh018439 for ; Fri, 22 Jul 2011 11:56:48 -0600 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p6MHultU018436 for ; Fri, 22 Jul 2011 11:56:47 -0600 Message-Id: <201107221756.p6MHultU018436@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 22 Jul 2011 19:56:47 +0200 Subject: [commit] Always respect no_hardware_watchpoints in py-breakpoint.c (fwd) To: patches@linaro.org Date: Fri, 22 Jul 2011 19:56:47 +0200 (CEST) From: "Ulrich Weigand" X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 http://sourceware.org/ml/gdb-patches/2011-07/msg00637.html ChangeLog: * gdb.python/py-breakpoint.exp: Re-set can-use-hw-watchpoints flag after restarting GDB if necessary. Index: gdb/testsuite/gdb.python/py-breakpoint.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.python/py-breakpoint.exp,v retrieving revision 1.10 diff -u -p -r1.10 py-breakpoint.exp --- gdb/testsuite/gdb.python/py-breakpoint.exp 14 Mar 2011 16:09:55 -0000 1.10 +++ gdb/testsuite/gdb.python/py-breakpoint.exp 22 Jul 2011 17:34:25 -0000 @@ -186,6 +186,10 @@ gdb_test "continue" ".*\[Ww\]atchpoint.* # Start with a fresh gdb. clean_restart ${testfile} +# Disable hardware watchpoints if necessary. +if [target_info exists gdb,no_hardware_watchpoints] { + gdb_test_no_output "set can-use-hw-watchpoints 0" "" +} if ![runto_main] then { fail "Cannot run to main." return 0 @@ -201,6 +205,10 @@ gdb_test "continue" ".*\[Ww\]atchpoint.* # Start with a fresh gdb. clean_restart ${testfile} +# Disable hardware watchpoints if necessary. +if [target_info exists gdb,no_hardware_watchpoints] { + gdb_test_no_output "set can-use-hw-watchpoints 0" "" +} if ![runto_main] then { fail "Cannot run to main." return 0