From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27137 invoked by alias); 22 Oct 2006 22:29:06 -0000 Received: (qmail 27128 invoked by uid 22791); 22 Oct 2006 22:29:06 -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:29:04 +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 AUB65695 (AUTH halo1); Sun, 22 Oct 2006 23:28:41 +0200 (IST) Date: Sun, 22 Oct 2006 22:29:00 -0000 Message-Id: From: Eli Zaretskii To: Daniel Jacobowitz CC: dewar@adacore.com, rodney.bates@wichita.edu, gdb@sourceware.org In-reply-to: <20061022222142.GA30437@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 22 Oct 2006 18:21:43 -0400) Subject: Re: breakpoint for accessing memory location Reply-to: Eli Zaretskii References: <453A3758.5090602@wichita.edu> <20061021155125.GA9177@nevyn.them.org> <20061021223200.GA21012@nevyn.them.org> <20061022042230.GA28995@nevyn.them.org> <453B61AD.7030605@adacore.com> <20061022222142.GA30437@nevyn.them.org> 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/msg00201.txt.bz2 > Date: Sun, 22 Oct 2006 18:21:43 -0400 > From: Daniel Jacobowitz > Cc: Robert Dewar , rodney.bates@wichita.edu, > gdb@sourceware.org > > > Warning: attempt to watch constant expression. > > I think that would be a useful warning, but that we shouldn't go to the > trouble of making it catch things like "p-p" where you would need an > optimizer to figure it out. Trouble? what trouble? Just sample the value of the expression for several random values of the variables, and if the value doesn't change, consider it constant. > Telling the user that watching "0x8000" doesn't do what they expect > would be a nice improvement though! Yep.