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 Fri, Apr 28, 2006 at 10:40:35AM -0700, Joel Brobecker wrote:
> Hello,
> 
> This is a new testcase that checks that the issue reported in:
> 
>         http://sources.redhat.com/ml/gdb-patches/2006-04/msg00367.html
> 
> will not regress again.
> 
> 2006-04-28  Joel Brobecker  <brobecker@adacore.com>
> 
>         * gdb.base/step-bt.c: New file.
>         * gdb.base/step-bt.exp: New testcase.
> 
> Tested on i686-pc-cygwin. on XFAIL on the last test with the current
> sources, all PASSes once the patch in the message mentioned above is
> applied.
> 
> OK to apply?

When the patch goes in, this is fine.  Thanks for the test.
> gdb_test "stepi 2" \
>          "" \
>          "step 2 instructions"
> 
> gdb_test "bt" \
>          "#0 +0x\[0-9a-z\]+ in hello .*#1 +0x\[0-9a-z\]* in main.*" \
>          "backtrace after two instruction steps"

Would it work to test backtrace after each of two stepi's?  That might
turn up interesting similar problems on more platforms.

-- 
Daniel Jacobowitz
CodeSourcery


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