This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/testsuite] check bt problem after 2 steps is gone
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 27 Jul 2006 21:50:56 -0400
- Subject: Re: [RFA/testsuite] check bt problem after 2 steps is gone
- References: <20060428174035.GF930@adacore.com> <20060727134139.GB15735@nevyn.them.org> <20060728011114.GE12362@adacore.com>
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