From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31730 invoked by alias); 13 Sep 2007 17:05:57 -0000 Received: (qmail 31714 invoked by uid 22791); 13 Sep 2007 17:05:56 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Sep 2007 17:05:52 +0000 Received: (qmail 16924 invoked from network); 13 Sep 2007 17:05:51 -0000 Received: from unknown (HELO localhost) (jimb@127.0.0.2) by mail.codesourcery.com with ESMTPA; 13 Sep 2007 17:05:50 -0000 To: Emi SUZUKI Cc: gdb-patches@sourceware.org Subject: Re: [RFC] checking the Z-packet suppport on gdbserver References: <20070913.210822.19763360.emi-suzuki@tjsys.co.jp> From: Jim Blandy Date: Thu, 13 Sep 2007 17:05:00 -0000 In-Reply-To: <20070913.210822.19763360.emi-suzuki@tjsys.co.jp> (Emi SUZUKI's message of "Thu, 13 Sep 2007 21:08:22 +0900") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00174.txt.bz2 Emi SUZUKI writes: > GDB decides which type of watchpoints should be set when giving the > command like "watch foo". And hardware watchpoints can be used when > gdbserver has the Z-packet support. However, as the session log above > has shown, GDB does not check the Z-packet support on gdbserver when > deciding the type of the watchpoint but when actually setting the > watchpoint to the target. Yeah, this is pretty losing behavior on GDB's part. > Would anyone give me any comments how it should be treated as a whole? > Defines another packet for it? Applies as proposed and notes "it > might not work with older versions of gdbserver" ? I wonder, would it make sense to have GDB assume that hardware watchpoints are *not* available on remote targets, and then have gdbserver send a 'qSupported' packet stubfeature that tells GDB that hardware watchpoints are okay?