2016-03-03 Yao Qi <yao.qi@linaro.org>
+ * gdb.base/disp-step-fork.c: Rename to ...
+ * gdb.base/step-over-fork.c: ... it. New file.
+ * gdb.base/disp-step-vfork.c: Rename to ...
+ * gdb.base/step-over-vfork.c: ... it. New file.
+ * gdb.base/disp-step-syscall.exp: Rename to ...
+ * gdb.base/step-over-syscall.exp: ... it. New file.
+ (disp_step_cross_syscall): Rename to ...
+ (step_over_syscall): ... it.
+
+2016-03-03 Yao Qi <yao.qi@linaro.org>
+
* gdb.base/disp-step-syscall.exp (break_cond_on_syscall): New.
If target supports condition evaluation on target, invoke
break_cond_on_syscall for fork and vfork.
proc setup { syscall } {
global gdb_prompt syscall_insn
- set testfile "disp-step-$syscall"
+ set testfile "step-over-$syscall"
clean_restart $testfile
return [list $syscall_insn_addr [get_hexadecimal_valueof "\$pc" "0"]]
}
-proc disp_step_cross_syscall { syscall } {
+proc step_over_syscall { syscall } {
with_test_prefix "$syscall" {
global syscall_insn
global gdb_prompt
- set testfile "disp-step-$syscall"
+ set testfile "step-over-$syscall"
if [build_executable ${testfile}.exp ${testfile} ${testfile}.c {debug}] {
untested ${testfile}.exp
proc break_cond_on_syscall { syscall } {
with_test_prefix "break cond on target : $syscall" {
- set testfile "disp-step-$syscall"
+ set testfile "step-over-$syscall"
set ret [setup $syscall]
}
}
-disp_step_cross_syscall "fork"
-disp_step_cross_syscall "vfork"
+step_over_syscall "fork"
+step_over_syscall "vfork"
-set testfile "disp-step-fork"
+set testfile "step-over-fork"
clean_restart $testfile
if { ![runto main] } then {
fail "run to main"