From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20341 invoked by alias); 4 Nov 2011 08:15:04 -0000 Received: (qmail 20190 invoked by uid 22791); 4 Nov 2011 08:14:51 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from cassis-gw.univ-brest.fr (HELO cassis-gw.univ-brest.fr) (195.83.247.29) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Nov 2011 08:14:37 +0000 Received: from localhost (cassis-gw.univ-brest.fr [127.0.0.1]) by cassis-gw.univ-brest.fr (Postfix) with ESMTP id 9F5A2690C86; Fri, 4 Nov 2011 09:14:36 +0100 (CET) Received: from cassis-gw.univ-brest.fr ([127.0.0.1]) by localhost (cassis-gw.univ-brest.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0-NeBhJ6P9IH; Fri, 4 Nov 2011 09:14:36 +0100 (CET) Received: from lili-Inspiron-1525.local (bro29-1-82-245-181-150.fbx.proxad.net [82.245.181.150]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: e21014117) by cassis-gw.univ-brest.fr (Postfix) with ESMTP id 3FBAF690D4C; Fri, 4 Nov 2011 09:14:36 +0100 (CET) Date: Fri, 04 Nov 2011 08:15:00 -0000 From: Thomas Baruchel Reply-To: baruchel@gmx.com To: gdb@sourceware.org Subject: Dump values from FPU after each operation Message-ID: User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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/msg00017.txt.bz2 Hi, I have a compiled program with no debugging symbol (and no source if you want to ask). I would like to know how some floating point value is made of, and since I know what value I am looking for, I think one easy way would be to lauch the program and to have on the standard output the content of the FPU after each operation; I am aware it will be a huge amount of value, but since I know which value is expected, I could probably parse this output to grep (with -A / -B options in order to extract 100 lines around the exact matching). But is it possible to do such a thing? I am aware that dumping these registers will not tell me the operations, but this is not a big issue; I can probably guess it once I know the involved floating-point values. If the data can't be redirect to standard output, I can save it, this is not the most important. Regards, -- Thomas Baruchel