From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13864 invoked by alias); 28 Jul 2006 01:51:09 -0000 Received: (qmail 13855 invoked by uid 22791); 28 Jul 2006 01:51:09 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 28 Jul 2006 01:51:01 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G6HVA-0000Sl-HT; Thu, 27 Jul 2006 21:50:56 -0400 Date: Fri, 28 Jul 2006 01:51:00 -0000 From: Daniel Jacobowitz To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA/testsuite] check bt problem after 2 steps is gone Message-ID: <20060728015056.GA1754@nevyn.them.org> Mail-Followup-To: Joel Brobecker , gdb-patches@sources.redhat.com References: <20060428174035.GF930@adacore.com> <20060727134139.GB15735@nevyn.them.org> <20060728011114.GE12362@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060728011114.GE12362@adacore.com> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00409.txt.bz2 On Thu, Jul 27, 2006 at 06:11:14PM -0700, Joel Brobecker wrote: > Yes it would. The semi-tricky part is to determine the number of stepi's > we can do before we end up inside printf, regardless of the architecture. > On sparc, for instance, seting up the frame can be done in one > instruction, thanks to the register rotation during calls. > > I actually tried it on sparc-solaris, and indeed, the call to printf > is located at the 4th instruction. > > My guess is that we should be able to add an extra "stepi 2; bt" > and that should work for all other architectures. Let's be conservative; how about stepi; bt; stepi; bt? -- Daniel Jacobowitz CodeSourcery