From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25946 invoked by alias); 8 Aug 2008 09:14:20 -0000 Received: (qmail 25937 invoked by uid 22791); 8 Aug 2008 09:14:19 -0000 X-Spam-Check-By: sourceware.org Received: from relay-pt2.poste.it (HELO relay-pt2.poste.it) (62.241.5.253) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 08 Aug 2008 09:13:40 +0000 Received: from geppetto.reilabs.com (212.123.91.176) by relay-pt2.poste.it (7.3.122) (authenticated as stefano.sabatini-lala@poste.it) id 489B7EB700002D9C; Fri, 8 Aug 2008 11:12:49 +0200 Received: from stefano by geppetto.reilabs.com with local (Exim 4.67) (envelope-from ) id 1KRO0q-0002yI-7L; Fri, 08 Aug 2008 11:11:56 +0200 Date: Fri, 08 Aug 2008 11:56:00 -0000 From: Stefano Sabatini To: gdb@sourceware.org, gdb Mailing List Subject: Re: How to watch for changes in a location of memory Message-ID: <20080808091156.GA8935@geppetto> Mail-Followup-To: gdb@sourceware.org, gdb Mailing List References: <20080808081041.GA32701@geppetto> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00148.txt.bz2 Message-ID: <20080808115600.Q1pmG3PkMlVFs_pILu359kDs6G9XmcrXfA6atvzssDE@z> On date Friday 2008-08-08 10:37:50 +0200, Eran Ifrah wrote: > You might want to try the 'watch' command which will causes gdb to > break whenever the memory at a given addr has been modified > > Read here for more details: > > http://sources.redhat.com/gdb/current/onlinedocs/gdb_6.html#SEC34 Thank you for the good pointer, yes indeed it seems it does what I want, which is basically: watch &ctx->foo; and yes I'll try to RTFM before to post a question the next time!! [...] Regards.