From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1338 invoked by alias); 22 Oct 2006 22:51:55 -0000 Received: (qmail 1329 invoked by uid 22791); 22 Oct 2006 22:51:55 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (192.114.186.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 22 Oct 2006 22:51:54 +0000 Received: from HOME-C4E4A596F7 (IGLD-84-228-212-131.inter.net.il [84.228.212.131]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id AUB73802 (AUTH halo1); Sun, 22 Oct 2006 23:51:32 +0200 (IST) Date: Sun, 22 Oct 2006 22:51:00 -0000 Message-Id: From: Eli Zaretskii To: Robert Dewar CC: rodney.bates@wichita.edu, gdb@sourceware.org In-reply-to: <453BF542.7000603@adacore.com> (message from Robert Dewar on Sun, 22 Oct 2006 18:48:34 -0400) Subject: Re: breakpoint for accessing memory location Reply-to: Eli Zaretskii 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> 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/msg00204.txt.bz2 > Date: Sun, 22 Oct 2006 18:48:34 -0400 > From: Robert Dewar > CC: rodney.bates@wichita.edu, gdb@sourceware.org > > I have no idea why you would think this is invalid, i.e. what the > general semantic rule is that makes this expression invalid. 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.