From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32049 invoked by alias); 20 Jun 2007 10:00:58 -0000 Received: (qmail 32039 invoked by uid 22791); 20 Jun 2007 10:00:57 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 20 Jun 2007 10:00:54 +0000 Received: from kahikatea.snap.net.nz (177.63.255.123.dynamic.snap.net.nz [123.255.63.177]) by viper.snap.net.nz (Postfix) with ESMTP id 6724F3D9B97; Wed, 20 Jun 2007 22:00:50 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 872238FBF6; Wed, 20 Jun 2007 22:00:33 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18040.64192.542481.273569@kahikatea.snap.net.nz> Date: Wed, 20 Jun 2007 10:00:00 -0000 To: Pawel Cc: gdb mailing list Subject: Re: gdb: debugging memory location changes. In-Reply-To: <18040.63313.819789.233867@localhost.localdomain> References: <18040.63313.819789.233867@localhost.localdomain> X-Mailer: VM 7.19 under Emacs 22.1.50.3 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: 2007-06/txt/msg00168.txt.bz2 > I am debugging large code I am not familiar with. I noticed that > memory location, for example funnyObject.field, changes somewhere in > the code and I do not know where, thus I do not know where to set the > breakpoint. Can gdb find such places in the code for me? Read about watchpoints in the Breakpoints node of the Gdb info manual. -- Nick http://www.inet.net.nz/~nickrob