From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12301 invoked by alias); 21 Oct 2006 15:27:14 -0000 Received: (qmail 12293 invoked by uid 22791); 21 Oct 2006 15:27:13 -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; Sat, 21 Oct 2006 15:27:08 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1GbIkY-0002GM-JA; Sat, 21 Oct 2006 11:27:02 -0400 Date: Sat, 21 Oct 2006 15:27:00 -0000 From: Daniel Jacobowitz To: "Rodney M. Bates" Cc: Eli Zaretskii , gdb@sourceware.org Subject: Re: breakpoint for accessing memory location Message-ID: <20061021152701.GA8665@nevyn.them.org> Mail-Followup-To: "Rodney M. Bates" , Eli Zaretskii , gdb@sourceware.org References: <4537DBC6.1030807@hccnet.nl> <20061019201214.GA32332@nevyn.them.org> <4537DEDC.5000008@hccnet.nl> <453A3758.5090602@wichita.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <453A3758.5090602@wichita.edu> 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/msg00175.txt.bz2 On Sat, Oct 21, 2006 at 10:06:00AM -0500, Rodney M. Bates wrote: > For example, I sometimes want to watch p->f, where p is local variable that > I know perfectly well will soon cease to exist, but I also know *p will > remain. I've long since learned that watching p->f doesn't work. Instead, > I print the address of p->f and then watch the contents of that address. Yes, this does seem to be a frequent point of confusion... -- Daniel Jacobowitz CodeSourcery