From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2988 invoked by alias); 22 Oct 2006 22:55:42 -0000 Received: (qmail 2980 invoked by uid 22791); 22 Oct 2006 22:55:42 -0000 X-Spam-Check-By: sourceware.org Received: from nile.gnat.com (HELO nile.gnat.com) (205.232.38.5) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 22 Oct 2006 22:55:40 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-nile.gnat.com (Postfix) with ESMTP id 6C73D48CE13; Sun, 22 Oct 2006 18:55:39 -0400 (EDT) Received: from nile.gnat.com ([127.0.0.1]) by localhost (nile.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08067-01-2; Sun, 22 Oct 2006 18:55:39 -0400 (EDT) Received: from [127.0.0.1] (nile.gnat.com [205.232.38.5]) by nile.gnat.com (Postfix) with ESMTP id 0C8B648CDF2; Sun, 22 Oct 2006 18:55:38 -0400 (EDT) Message-ID: <453BF6F2.5050202@adacore.com> Date: Sun, 22 Oct 2006 22:55:00 -0000 From: Robert Dewar User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Eli Zaretskii CC: rodney.bates@wichita.edu, gdb@sourceware.org Subject: Re: breakpoint for accessing memory location References: <4537DBC6.1030807@hccnet.nl> <20061019201214.GA32332@nevyn.them.org> <4537DEDC.5000008@hccnet.nl> <453A3758.5090602@wichita.edu> <20061021155125.GA9177@nevyn.them.org> <20061021223200.GA21012@nevyn.them.org> <20061022042230.GA28995@nevyn.them.org> <453B61AD.7030605@adacore.com> <453BF542.7000603@adacore.com> 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-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00205.txt.bz2 Eli Zaretskii wrote: > The general rule is that watching a constant expression is silly, > since its value never changes and thus the watchpoint will never > break. Thus, it's probably not what the user wanted, and a warning > would be a Good Thing, IMO. Right, but of course it is recursively undecidable whether an expression is constant, so you don't really mean what you say. What you mean is that warnings could be given in a few cases, e.g. where the expression is a literal, but going beyond this is a waste of time, which will not be helpful in practice, no one is going to watch p-p anyway.