From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27379 invoked by alias); 21 Oct 2006 18:55:31 -0000 Received: (qmail 27371 invoked by uid 22791); 21 Oct 2006 18:55:30 -0000 X-Spam-Check-By: sourceware.org Received: from eastrmmtao04.cox.net (HELO eastrmmtao04.cox.net) (68.230.240.35) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 21 Oct 2006 18:55:29 +0000 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao04.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20061021185529.RSNX25210.eastrmmtao04.cox.net@eastrmimpo02.cox.net>; Sat, 21 Oct 2006 14:55:29 -0400 Received: from [192.168.1.2] ([68.102.92.133]) by eastrmimpo02.cox.net with bizsmtp id d6up1V0012seT0L0000000 Sat, 21 Oct 2006 14:54:49 -0400 Message-ID: <453A6D1D.1080009@wichita.edu> Date: Sat, 21 Oct 2006 18:55:00 -0000 From: "Rodney M. Bates" User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050322) MIME-Version: 1.0 To: Eli Zaretskii CC: 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> 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/msg00179.txt.bz2 > Are there any more examples beyond p->f? That is, what other > situations are there where the context can matter? Are we talking > only about portions of expression going out of context (and thus > becoming invalid), or are there other problems? Here are some more example questions, perhaps not quite so far fetched. What if I put a watch on p->f where there is a visible p, then execution goes somewhere where p is not visible, but p still exists? For example, suppose p is local to function foo, and foo calls non-nested function bar. Or, I haven't placed the watch yet and first stop execution in bar. Can I now place this watch after moving up the stack to foo's frame? In fact, in general, many of my questions about p's being visible could be reformulated to p's existence, which might be a more meaningful property. -- ------------------------------------------------------------- Rodney M. Bates, retired assistant professor Dept. of Computer Science, Wichita State University Wichita, KS 67260-0083 316-978-3922 rodney.bates@wichita.edu