From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23607 invoked by alias); 22 Oct 2006 22:21:53 -0000 Received: (qmail 23594 invoked by uid 22791); 22 Oct 2006 22:21:52 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Sun, 22 Oct 2006 22:21:49 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GblhP-0007wr-G3; Sun, 22 Oct 2006 18:21:43 -0400 Date: Sun, 22 Oct 2006 22:21:00 -0000 From: Daniel Jacobowitz To: Eli Zaretskii Cc: Robert Dewar , rodney.bates@wichita.edu, gdb@sourceware.org Subject: Re: breakpoint for accessing memory location Message-ID: <20061022222142.GA30437@nevyn.them.org> Mail-Followup-To: Eli Zaretskii , Robert Dewar , rodney.bates@wichita.edu, gdb@sourceware.org References: <453A3758.5090602@wichita.edu> <20061021155125.GA9177@nevyn.them.org> <20061021223200.GA21012@nevyn.them.org> <20061022042230.GA28995@nevyn.them.org> <453B61AD.7030605@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) 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/msg00199.txt.bz2 On Mon, Oct 23, 2006 at 12:18:50AM +0200, Eli Zaretskii wrote: > > Date: Sun, 22 Oct 2006 08:18:53 -0400 > > From: Robert Dewar > > > > And it would lead to surprising results, if you watch p-p and p is > > out of scope, it would be surprising if it did NOT lead to an error! > > Strange, I'd actually expect GDB to tell me that "watch p-p" is an > invalid command. Something like > > 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. Telling the user that watching "0x8000" doesn't do what they expect would be a nice improvement though! -- Daniel Jacobowitz CodeSourcery