This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA/testsuite] check bt problem after 2 steps is gone


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]