Refactor gdb.base/disp-step-syscall.exp for general step over test
authorYao Qi <yao.qi@linaro.org>
Thu, 3 Mar 2016 09:17:44 +0000 (09:17 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 3 Mar 2016 09:17:44 +0000 (09:17 +0000)
commit0b47da9f176aa73854f1ff8ae00afda11a4f338a
treea0f434e3378e4d63bb1d749a755ef3eb3f03a67b
parent0f8288ae82bf5bdb33d46d7447cd3132393a1bd2
Refactor gdb.base/disp-step-syscall.exp for general step over test

This patch moves some code out of disp_step_cross_syscall to a new proc
check_pc_after_cross_syscall and setup.  Procedure setup is to start a
fresh GDB and compute the syscall instruction address.

gdb/testsuite:

2016-03-03  Yao Qi  <yao.qi@linaro.org>

* gdb.base/disp-step-syscall.exp (check_pc_after_cross_syscall): New
proc.
(setup): New proc.
(disp_step_cross_syscall): Move code to check_pc_after_cross_syscall
and setup.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/disp-step-syscall.exp