From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19920 invoked by alias); 15 Jul 2004 03:53:04 -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 19862 invoked from network); 15 Jul 2004 03:53:03 -0000 Received: from unknown (HELO aragorn.inter.net.il) (192.114.186.23) by sourceware.org with SMTP; 15 Jul 2004 03:53:03 -0000 Received: from zaretski ([80.230.141.239]) by aragorn.inter.net.il (MOS 3.4.6-GR) with ESMTP id DTL43765; Thu, 15 Jul 2004 06:52:13 +0300 (IDT) Date: Thu, 15 Jul 2004 06:42:00 -0000 From: "Eli Zaretskii" To: charlls_quarra@yahoo.com.ar Message-Id: <6654-Thu15Jul2004065134+0300-eliz@gnu.org> CC: gdb@sources.redhat.com In-reply-to: <20040714230107.40234.qmail@web41813.mail.yahoo.com> (message from =?iso-8859-1?q?Charlls=20Quarra?= on Wed, 14 Jul 2004 20:01:07 -0300 (ART)) Subject: Re: detecting breakpoint type and number Reply-to: Eli Zaretskii References: <20040714230107.40234.qmail@web41813.mail.yahoo.com> X-SW-Source: 2004-07/txt/msg00161.txt.bz2 > Date: Wed, 14 Jul 2004 20:01:07 -0300 (ART) > From: =?iso-8859-1?q?Charlls=20Quarra?= > > 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 I don't understand why you need this. You could simply specify the condition when you set the watchpoint: (gdb) watch *(int*)$address if *(int*)$address == or use the `condition' command (which see) for an already existing watchpoint.