From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28635 invoked by alias); 4 Nov 2011 09:18:57 -0000 Received: (qmail 28619 invoked by uid 22791); 4 Nov 2011 09:18:55 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout21.012.net.il (HELO mtaout21.012.net.il) (80.179.55.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Nov 2011 09:18:41 +0000 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0LU400H00PPMR400@a-mtaout21.012.net.il> for gdb@sourceware.org; Fri, 04 Nov 2011 11:18:39 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.228.70.69]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LU400HTGPV3Q720@a-mtaout21.012.net.il>; Fri, 04 Nov 2011 11:18:39 +0200 (IST) Date: Fri, 04 Nov 2011 09:18:00 -0000 From: Eli Zaretskii Subject: Re: Dump values from FPU after each operation In-reply-to: To: baruchel@gmx.com Cc: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83sjm4kzyj.fsf@gnu.org> References: 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/msg00018.txt.bz2 > Date: Fri, 4 Nov 2011 09:14:35 +0100 (CET) > From: Thomas Baruchel > > 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, I think you want "info float" and/or "info all-registers", and you want to turn on logging, so GDB writes everything to a log file you can later process.