From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17408 invoked by alias); 4 Nov 2011 17:23:43 -0000 Received: (qmail 17396 invoked by uid 22791); 4 Nov 2011 17:23:42 -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 17:23:28 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RMNUF-0001Jk-Di from pedro_alves@mentor.com ; Fri, 04 Nov 2011 10:23:27 -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 17:23:25 +0000 From: Pedro Alves To: gdb@sourceware.org, baruchel@gmx.com Subject: Re: Recursive call to stepi and "Max user call depth exceeded" Date: Fri, 04 Nov 2011 17:23:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-12-generic; KDE/4.7.2; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201111041723.22991.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/msg00022.txt.bz2 On Friday 04 November 2011 17:03:53, Thomas Baruchel wrote: > 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, Right, don't make the command recursive. That was bogus advice. (gdb) define mystepi > si > info float > end (gdb) while 1 > mystepi > end Or instead: (gdb) define hook-stop > info float > end (gdb) while 1 > si > end -- Pedro Alves