From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25929 invoked by alias); 28 Sep 2007 21:21:06 -0000 Received: (qmail 25921 invoked by uid 22791); 28 Sep 2007 21:21:05 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 28 Sep 2007 21:20:59 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l8SLKvC6018300 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 28 Sep 2007 17:20:57 -0400 Received: from pobox-2.corp.redhat.com (pobox-2.corp.redhat.com [10.11.255.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8SLKuPg012292 for ; Fri, 28 Sep 2007 17:20:56 -0400 Received: from localhost.localdomain (vpn-6-2.fab.redhat.com [10.33.6.2]) by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l8SLKtGT001339 for ; Fri, 28 Sep 2007 17:20:55 -0400 Message-ID: <46FD7036.2010500@redhat.com> Date: Fri, 28 Sep 2007 21:21:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070727) MIME-Version: 1.0 To: Frysk Hackers Subject: Optimizing watchpoints Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00410.txt.bz2 I wasn't going to do this in the first pass at watchpoints, but I might as well as think on it now. Given that debug registers are very scarce, and that typically there might be a scenario where we could better optimize watching similar addresses and ranges, is there an established protocol for this? I thought about checking addresses and ranges as a simple "we are already watching this address in another register and scope". But as usual things get hairy in C when you add in pointers (that pointer to pointers in structures and so on). I suspect the answer here is "No" but can't help to ask, and establish the conversation ;) Regards Phil