From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6976 invoked by alias); 4 Nov 2011 17:04:11 -0000 Received: (qmail 6968 invoked by uid 22791); 4 Nov 2011 17:04:10 -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 17:03:56 +0000 Received: from localhost (cassis-gw.univ-brest.fr [127.0.0.1]) by cassis-gw.univ-brest.fr (Postfix) with ESMTP id A4D6A690D47; Fri, 4 Nov 2011 18:03:55 +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 Igxnk4bl-RAb; Fri, 4 Nov 2011 18:03:55 +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 F39BE690D62; Fri, 4 Nov 2011 18:03:54 +0100 (CET) Date: Fri, 04 Nov 2011 17:04:00 -0000 From: Thomas Baruchel Reply-To: baruchel@gmx.com To: gdb@sourceware.org Subject: Recursive call to stepi and "Max user call depth exceeded" 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/msg00021.txt.bz2 Hi, I tried to use the following trick: define s info float stepi s end (based on an idea found there: http://stackoverflow.com/questions/7940963/trace-application-compiled-by-gcc ) But I soon encountered the error: Max user call depth exceeded -- command aborted. What I am trying to do is: print the fpu register after each machine instruction (of course output is parsed by an external program), but using a recursive function obviously is a bad idea. How can I run my program step by step and print the fpu after each step? Regards, -- Thomas Baruchel