From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6267 invoked by alias); 10 Mar 2011 21:04:08 -0000 Received: (qmail 6258 invoked by uid 22791); 10 Mar 2011 21:04:07 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,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; Thu, 10 Mar 2011 21:03:59 +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 p2AL2vi8012876 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Mar 2011 16:02:57 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p2AL2u3n030614; Thu, 10 Mar 2011 16:02:56 -0500 Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p2AL2tFA017084; Thu, 10 Mar 2011 16:02:55 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 1C25D3797CD; Thu, 10 Mar 2011 14:02:55 -0700 (MST) From: Tom Tromey To: "Philippe Waroquiers" Cc: "Jan Kratochvil" , "robert song" , , "Julian Seward" Subject: Re: Why no hwatch command in gdb ? References: <20110310081154.GA13603@host1.jankratochvil.net> <20110310103409.GA29242@host1.jankratochvil.net> <20110310134453.GA11068@host1.jankratochvil.net> Date: Thu, 10 Mar 2011 21:04:00 -0000 In-Reply-To: (Philippe Waroquiers's message of "Thu, 10 Mar 2011 15:47:07 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2011-03/txt/msg00080.txt.bz2 >>>>> "Philippe" == Philippe Waroquiers writes: Philippe> On the side of 'hardware' watchpoints limitations: Philippe> I am busy embedding a gdbserver inside Valgrind (target is Philippe> to integrate it in April, but more review activity is still needed). Delightful. Philippe> I only encountered a small problem with gdb "remote": There is Philippe> a gdb command to configure the nr of remote hardware Philippe> watchpoint but there is no command to configure the length for Philippe> an hardware watchpoint: e.g. for i386, gdb remote "hardcodes" Philippe> the length to 4 bytes (which looks wrong btw, as the real hw Philippe> can go up to 8 bytes I believe). Philippe> So, I have in a corner a patch implementing Philippe> 'set remote hardware-watchpoint-length-limit' Philippe> to configure the max length limit of an hw watchpoint. Philippe> I believe it would be nice to add this new command in gdb. As far as I understand it, this sounds ok. Why can't this be negotiated between gdb and the remote? Then the in-valgrind gdbserver could just report unlimited and the user wouldn't have to fool around. Philippe> If you want more info about the gdbserver in Valgrind, I can Philippe> give more (I expect to output a new improved beta version of Philippe> the Valgrind gdbserver patch in the coming days). If you send out announcements, feel free to CC this list. Tom