From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5410 invoked by alias); 16 Jul 2012 18:43:52 -0000 Received: (qmail 5286 invoked by uid 22791); 16 Jul 2012 18:43:51 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 16 Jul 2012 18:43:37 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q6GIhaKe006811 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 Jul 2012 14:43:36 -0400 Received: from host2.jankratochvil.net (ovpn-116-25.ams2.redhat.com [10.36.116.25]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q6GIhWuU028942 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 16 Jul 2012 14:43:34 -0400 Date: Mon, 16 Jul 2012 18:43:00 -0000 From: Jan Kratochvil To: Michael Eager Cc: Daniel Jacobowitz , "gdb@sourceware.org" Subject: Re: HW breakpoint on Linux x86 native Message-ID: <20120716184328.GA17596@host2.jankratochvil.net> References: <500443C7.5040707@eagerm.com> <50045AC7.1060006@eagerm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50045AC7.1060006@eagerm.com> User-Agent: Mutt/1.5.21 (2010-09-15) 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: 2012-07/txt/msg00038.txt.bz2 On Mon, 16 Jul 2012 20:17:43 +0200, Michael Eager wrote: > When running a local process, the target vector is different, > created by init_exec_ops() in exec.c. This defaults to > to_can_use_hw_breakpoint = reply_zero(). > > RH has a patch which forces the test in their gdb-7.3.1 release: http://pkgs.fedoraproject.org/gitweb/?p=gdb.git;a=blob_plain;f=gdb-bz541866-rwatch-before-run.patch;hb=master It seems to be fixed in FSF GDB since 7.4 by: [RFA 2/3] Demote to sw watchpoint only in update_watchpoint http://sourceware.org/ml/gdb-patches/2011-04/msg00292.html http://sourceware.org/ml/gdb-patches/2011-05/msg00042.html commit efa8e67a1ea2d6f90d86efc31076f24e67940f8e Author: Thiago Jung Bauermann Date: Thu May 5 22:52:09 2011 +0000 Demote to sw watchpoint only in update_watchpoint. Do you really run gdb-7.4+? (Going to drop the Fedora patch now, thanks for the notification.) Thanks, Jan