From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16088 invoked by alias); 24 Apr 2012 13:09:55 -0000 Received: (qmail 15991 invoked by uid 22791); 24 Apr 2012 13:09:53 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Apr 2012 13:09:39 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1SMfUw-0001VQ-Lk from Luis_Gustavo@mentor.com ; Tue, 24 Apr 2012 06:09:38 -0700 Received: from NA1-MAIL.mgc.mentorg.com ([147.34.98.181]) by svr-orw-fem-01.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 24 Apr 2012 06:09:38 -0700 Received: from [0.0.0.0] ([172.16.63.104]) by NA1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 24 Apr 2012 06:09:38 -0700 Message-ID: <4F96A614.3040303@mentor.com> Date: Tue, 24 Apr 2012 13:09:00 -0000 From: Luis Gustavo Reply-To: "Gustavo, Luis" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 MIME-Version: 1.0 To: Xin Tong CC: gdb@sourceware.org Subject: Re: Hardware watchpoint for read References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-04/txt/msg00192.txt.bz2 Hi, On 04/24/2012 10:02 AM, Xin Tong wrote: > Hello > > I am wondering that can gdb insert hardware watch point for read to > the watched memory ? can other debugger do that ? is it supported in > hardware watchpoint ? > > Thanks > > Xin > Read watchpoints are hard to implement as soft-watchpoints, so they're usually implemented as hardware watchpoints. If a debugger knows how to properly set the bits in the hardware, either through ptrace or other means, it can configure a read/write/read-write watchpoint. Depends on hardware support really. Regards, Luis