From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18631 invoked by alias); 4 Nov 2011 18:37:23 -0000 Received: (qmail 18555 invoked by uid 22791); 4 Nov 2011 18:37:22 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Nov 2011 18:37:06 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RMOdV-0007Nc-8o from pedro_alves@mentor.com ; Fri, 04 Nov 2011 11:37:05 -0700 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 4 Nov 2011 18:37:03 +0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: Run until some FPU register has changed Date: Fri, 04 Nov 2011 18:37:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-12-generic; KDE/4.7.2; x86_64; ; ) Cc: Jonas Maebe References: <6C87CB2A-8D2C-4B03-AEBC-7A5A7562864C@elis.ugent.be> In-Reply-To: <6C87CB2A-8D2C-4B03-AEBC-7A5A7562864C@elis.ugent.be> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111041837.01387.pedro@codesourcery.com> 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: 2011-11/txt/msg00027.txt.bz2 On Friday 04 November 2011 17:55:12, Jonas Maebe wrote: > > On 04 Nov 2011, at 18:47, Thomas Baruchel wrote: > > > "run until register 0 in FPU has changed" > > The "watch" command also works with registers, so > watch $f0 > c > > should work (replace f0 with the actual name of floating point register 0). You can oif course set watchpoints on all floating point registers, although I don't know how much extra slowdown that will cause. I assume pretty much negligible compared to watching a single register. GDB will need to force single-stepping of the target behind the scenes in both cases, and pulling a single float register out of the target is already likely pulling them all. -- Pedro Alves