From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5751 invoked by alias); 23 Apr 2010 18:16:00 -0000 Received: (qmail 5738 invoked by uid 22791); 23 Apr 2010 18:15:59 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Apr 2010 18:15:53 +0000 Received: (qmail 5282 invoked from network); 23 Apr 2010 18:15:52 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 23 Apr 2010 18:15:52 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: [RFA] Testcase for bug report 11531 Date: Fri, 23 Apr 2010 18:16:00 -0000 User-Agent: KMail/1.12.2 (Linux/2.6.31-20-generic; KDE/4.3.2; x86_64; ; ) Cc: Joel Brobecker , Pierre Muller References: <000301cae303$d6d068b0$84713a10$@muller@ics-cnrs.unistra.fr> <20100423172933.GO19194@adacore.com> In-Reply-To: <20100423172933.GO19194@adacore.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201004231915.49375.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00810.txt.bz2 On Friday 23 April 2010 18:29:33, Joel Brobecker wrote: > > +gdb_test "start" ".*Temporary breakpoint.*" > > Unfortunately, this does not work when testing with the remote protocol. > Do use "runto", but use "*main" instead of "main", or something like > that. That way, you should always stop before the instruction that > causes the watchpoint to trigger. > Or avoid those tricks, and simply put another statement before the one that triggers the watchpoint: int main () { + myrec.y = 1; <<<<<< runto main stops here instead. myrec.x = 5; myrec.y = 3.4; -- Pedro Alves