From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11731 invoked by alias); 14 Nov 2005 14:10:48 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 11715 invoked by uid 22791); 14 Nov 2005 14:10:46 -0000 Received: from zigzag.lvk.cs.msu.su (HELO zigzag.lvk.cs.msu.su) (158.250.17.23) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 14 Nov 2005 14:10:46 +0000 Received: from Debian-exim by zigzag.lvk.cs.msu.su with spam-scanned (Exim 4.50) id 1Ebf2c-0004B1-9e for gdb@sources.redhat.com; Mon, 14 Nov 2005 17:10:43 +0300 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by zigzag.lvk.cs.msu.su with esmtp (Exim 4.50) id 1Ebf2S-000418-SE; Mon, 14 Nov 2005 17:10:28 +0300 From: Vladimir Prus To: Johan Rydberg Subject: Re: read watchpoints ignored? Date: Mon, 14 Nov 2005 14:10:00 -0000 User-Agent: KMail/1.7.2 Cc: Daniel Jacobowitz , Eli Zaretskii , gdb@sources.redhat.com References: <200511111622.01337.ghost@cs.msu.su> <200511141642.22179.ghost@cs.msu.su> <43789851.7080608@virtutech.com> In-Reply-To: <43789851.7080608@virtutech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200511141710.28146.ghost@cs.msu.su> X-SW-Source: 2005-11/txt/msg00267.txt.bz2 On Monday 14 November 2005 16:59, you wrote: > Vladimir Prus wrote: > > This essentially disables read watchpoints. What's the point in first > > implementing read watchpoints in a target, and then disabling them > > completely in gdb? Should be then disallow "read watchpoint" packet in > > the remote protocol? > > I wouldn't say it disables read watchpoints, since the functionality GDB > provides is exactly that; read watchpoints. The difference is that it > uses access watchpoints to accomplish this, because a large set of targets > does not support true read watchpoints. > > Which is more important; providing the functionality, or providing some > functionality for some targets, but using hardware read watchpoints instead > of hardware access watchpoints? I hope we can have both. The only thing needed is a way to detect that remote targets supports read watchpoints. Using remote_protocol_Z[Z_PACKET_READ_WP].support from remote.c (under cover of new target operation) is such a way, and I think it should work fine. But comments from more knowledgable persons are welcome. - Volodya