From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10077 invoked by alias); 22 Oct 2006 20:40:30 -0000 Received: (qmail 10067 invoked by uid 22791); 22 Oct 2006 20:40:29 -0000 X-Spam-Check-By: sourceware.org Received: from sibelius.xs4all.nl (HELO brahms.sibelius.xs4all.nl) (82.92.89.47) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 22 Oct 2006 20:40:27 +0000 Received: from elgar.sibelius.xs4all.nl (root@elgar.sibelius.xs4all.nl [192.168.0.2]) by brahms.sibelius.xs4all.nl (8.13.8/8.13.6) with ESMTP id k9MKdmvY000913; Sun, 22 Oct 2006 22:39:48 +0200 (CEST) Received: from elgar.sibelius.xs4all.nl (kettenis@localhost.sibelius.xs4all.nl [127.0.0.1]) by elgar.sibelius.xs4all.nl (8.13.8/8.13.6) with ESMTP id k9MKdlpx028434; Sun, 22 Oct 2006 22:39:47 +0200 (CEST) Received: (from kettenis@localhost) by elgar.sibelius.xs4all.nl (8.13.8/8.13.8/Submit) id k9MKdlFC015146; Sun, 22 Oct 2006 22:39:47 +0200 (CEST) Date: Sun, 22 Oct 2006 20:40:00 -0000 Message-Id: <200610222039.k9MKdlFC015146@elgar.sibelius.xs4all.nl> From: Mark Kettenis To: drow@false.org CC: eliz@gnu.org, rodney.bates@wichita.edu, gdb@sourceware.org In-reply-to: <20061022042230.GA28995@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 22 Oct 2006 00:22:30 -0400) 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> 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/msg00196.txt.bz2 > Date: Sun, 22 Oct 2006 00:22:30 -0400 > From: Daniel Jacobowitz > > On Sun, Oct 22, 2006 at 06:17:58AM +0200, Eli Zaretskii wrote: > > > Date: Sat, 21 Oct 2006 18:32:00 -0400 > > > From: Daniel Jacobowitz > > > Cc: rodney.bates@wichita.edu, gdb@sourceware.org > > > > > > > > So you are saying that "watch p - p" will also cause an error message > > > > when p goes out of scope? > > > > > > Well, I just tried it; that's what I'd expect, and it seems to be what > > > happens, also. > > > > That's silly, IMHO. Don't you think we should be smarter? Perhaps > > some kind of expression optimizer could be devised to do better. > > I really don't think we should be optimizing expressions. One > certainly could be devised - but it would look like "fold" in GCC, > which is a huge and horrendously complex thing. Agreed.