aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2016-03-03 09:17:45 +0000
committerYao Qi <yao.qi@linaro.org>2016-03-03 09:17:45 +0000
commit8fc8cbdaf698ed042d859d5749cff66937bbb57c (patch)
treeb4024b4e869a8649ca7be9d319628d6fa8275668 /gdb
parent92fa70b0bd8690d979357ebcdb501a9e4aa42ea6 (diff)
downloadgdb-8fc8cbdaf698ed042d859d5749cff66937bbb57c.zip
gdb-8fc8cbdaf698ed042d859d5749cff66937bbb57c.tar.gz
gdb-8fc8cbdaf698ed042d859d5749cff66937bbb57c.tar.bz2
Rename disp-step-syscall.exp to step-over-syscall.exp
disp-step-syscall.exp is extended for stepping over syscall instruction in different cases, with or without displaced stepping, and stepping over by GDBserver. This patch rename disp-step-syscall.exp to step-over-syscall.exp to reflect this. gdb/testsuite: 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.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog11
-rw-r--r--gdb/testsuite/gdb.base/step-over-fork.c (renamed from gdb/testsuite/gdb.base/disp-step-fork.c)0
-rw-r--r--gdb/testsuite/gdb.base/step-over-syscall.exp (renamed from gdb/testsuite/gdb.base/disp-step-syscall.exp)14
-rw-r--r--gdb/testsuite/gdb.base/step-over-vfork.c (renamed from gdb/testsuite/gdb.base/disp-step-vfork.c)0
4 files changed, 18 insertions, 7 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index eab1255..0104448 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,16 @@
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.
diff --git a/gdb/testsuite/gdb.base/disp-step-fork.c b/gdb/testsuite/gdb.base/step-over-fork.c
index dd84f57..dd84f57 100644
--- a/gdb/testsuite/gdb.base/disp-step-fork.c
+++ b/gdb/testsuite/gdb.base/step-over-fork.c
diff --git a/gdb/testsuite/gdb.base/disp-step-syscall.exp b/gdb/testsuite/gdb.base/step-over-syscall.exp
index 0aac649..4728ec8 100644
--- a/gdb/testsuite/gdb.base/disp-step-syscall.exp
+++ b/gdb/testsuite/gdb.base/step-over-syscall.exp
@@ -47,7 +47,7 @@ proc check_pc_after_cross_syscall { syscall syscall_insn_next_addr } {
proc setup { syscall } {
global gdb_prompt syscall_insn
- set testfile "disp-step-$syscall"
+ set testfile "step-over-$syscall"
clean_restart $testfile
@@ -107,12 +107,12 @@ proc setup { syscall } {
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
@@ -174,7 +174,7 @@ proc disp_step_cross_syscall { syscall } {
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]
@@ -200,10 +200,10 @@ proc break_cond_on_syscall { 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"
diff --git a/gdb/testsuite/gdb.base/disp-step-vfork.c b/gdb/testsuite/gdb.base/step-over-vfork.c
index dfc75af..dfc75af 100644
--- a/gdb/testsuite/gdb.base/disp-step-vfork.c
+++ b/gdb/testsuite/gdb.base/step-over-vfork.c