From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27228 invoked by alias); 15 Jul 2004 00:48:08 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27220 invoked from network); 15 Jul 2004 00:48:07 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 15 Jul 2004 00:48:07 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1BkuPH-0000vn-A6; Wed, 14 Jul 2004 20:47:27 -0400 Date: Thu, 15 Jul 2004 01:27:00 -0000 From: Daniel Jacobowitz To: Charlls Quarra Cc: gdb@sources.redhat.com Subject: Re: detecting breakpoint type and number Message-ID: <20040715004727.GA3455@nevyn.them.org> Mail-Followup-To: Charlls Quarra , gdb@sources.redhat.com References: <20040714230107.40234.qmail@web41813.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040714230107.40234.qmail@web41813.mail.yahoo.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-07/txt/msg00159.txt.bz2 On Wed, Jul 14, 2004 at 08:01:07PM -0300, Charlls Quarra wrote: > > Hi, > > I have a script that continues on a watchpointed > variable untils its value becomes something expected. > the script looks like this: > > define bla > set $conti=1 > while $conti==1 > set $u=*(int*)$address > if $u== > set $conti=0 > else > cont > end > end > end > > note the cont command in the else subclause; the > problem is that i dont know how to detect if the stop > was due to my watchpointed variable at $address, or > some other breakpoint/watchpoint occuring > simultaneously. > > can i attach procedures to particular > watchpoints/breakpoints that get called when they are > triggered? apparently the only way to figure out what > type of break occurred is to have breaks/watchs to > modify dedicated variables Take a look at the "commands" command. -- Daniel Jacobowitz