From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2881 invoked by alias); 16 Apr 2008 22:36:42 -0000 Received: (qmail 2865 invoked by uid 22791); 16 Apr 2008 22:36:40 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 16 Apr 2008 22:36:20 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 56D10982C4; Wed, 16 Apr 2008 22:36:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id BB9FF98278; Wed, 16 Apr 2008 22:36:18 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JmGEj-0000l3-GU; Wed, 16 Apr 2008 18:36:17 -0400 Date: Thu, 17 Apr 2008 02:33:00 -0000 From: Daniel Jacobowitz To: "H.J. Lu" Cc: gdb@sourceware.org Subject: Re: Does hardware watchpoint work on Linux/x86-64? Message-ID: <20080416223617.GA2734@caradoc.them.org> Mail-Followup-To: "H.J. Lu" , gdb@sourceware.org References: <6dc9ffc80804161505h739a3aa0t86556f71d6422772@mail.gmail.com> <20080416221945.GA1708@caradoc.them.org> <6dc9ffc80804161524g5fe8ea7mf972f570676456b4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6dc9ffc80804161524g5fe8ea7mf972f570676456b4@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-04/txt/msg00163.txt.bz2 On Wed, Apr 16, 2008 at 03:24:31PM -0700, H.J. Lu wrote: > (gdb) watch foo > Watchpoint 1: foo > (gdb) q Oh this. Start the program before you set the watchpoint. As long as hardware watchpoints and software watchpoints are selected when they are set, instead of when they are inserted, we will have this problem. Non-x86 targets have had it for a long time; it is new on x86, because it only worked before by virtue of breaking remote watchpoints. -- Daniel Jacobowitz CodeSourcery