+2015-10-21 Yao Qi <yao.qi@linaro.org>
+
+ * lib/range-stepping-support.exp (exec_cmd_expect_vCont_count):
+ Remove argument exp_vCont_s.
+ * gdb.base/range-stepping.exp: Callers updated.
+ * gdb.trace/range-stepping.exp: Likewise.
+
2015-10-21 Aleksandar Ristovski <aristovski@qnx.com>
* gdb/nto-tdep.c (QNX_NOTE_NAME, QNX_INFO_SECT_NAME): New defines.
# <-- T05
# --> vCont;rSTART,END (range step)
# <-- T05
- set result [exec_cmd_expect_vCont_count "next" 1 1]
+ set result [exec_cmd_expect_vCont_count "next" 1]
if { $result } {
# This is the first range-stepping test, and the simplest
# one. If it fails, probably the rest of the tests would
# <-- T05 (target stops at ADDR2)
# --> vCont;rADDR1,ADDR3 (continues range stepping)
# <-- T05
- exec_cmd_expect_vCont_count "next" 0 2
+ exec_cmd_expect_vCont_count "next" 2
}
# Check that breakpoints interrupt range stepping correctly.
# --> $Z0,ADDR2 (step-resume breakpoint at ADDR2)
# --> vCont;c (resume)
# <-- T05 (target hits the breakpoint at func1)
- exec_cmd_expect_vCont_count "next" 0 1
+ exec_cmd_expect_vCont_count "next" 1
gdb_test "backtrace" "#0 .* func1 .*#1 .* main .*" \
"backtrace from func1"
# A cancelled range step should not confuse the following
# execution commands.
- exec_cmd_expect_vCont_count "stepi" 1 0
+ exec_cmd_expect_vCont_count "stepi" 0
gdb_test "finish" ".*"
gdb_test "next" ".*"
delete_breakpoints
# GDB should send one vCont;r and receive one stop reply:
# --> vCont;rSTART,END (range step)
# <-- T05
- exec_cmd_expect_vCont_count "next" 0 1
+ exec_cmd_expect_vCont_count "next" 1
# Confirm the loop completed.
gdb_test "print a" " = 15"
# GDB should send one vCont;r and receive one stop reply:
# --> vCont;rSTART,END (range step)
# <-- T05
- exec_cmd_expect_vCont_count "next" 0 1
+ exec_cmd_expect_vCont_count "next" 1
# Confirm the loop completed.
gdb_test "print a" " = 15"
# Break the loop earlier and continue range stepping.
gdb_test "set variable c = 0"
- exec_cmd_expect_vCont_count "next" 0 1
+ exec_cmd_expect_vCont_count "next" 1
}
# Check that range stepping doesn't break software watchpoints. With
# Step a line with a tracepoint in the middle. The tracepoint
# itself shouldn't have any effect on range stepping. We
- # should see one vCont;r and no vCont;s's.
- exec_cmd_expect_vCont_count "step" 0 1
+ # should see one vCont;r.
+ exec_cmd_expect_vCont_count "step" 1
gdb_test_no_output "tstop"
gdb_test "tfind" "Found trace frame .*" "first tfind"
gdb_test "tfind" \
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# Execute command CMD and check that GDB sends the expected number of
-# vCont;s and vCont;r packets. Returns 0 if the test passes,
-# otherwise returns 1.
+# vCont;r packet. Returns 0 if the test passes, otherwise returns 1.
-proc exec_cmd_expect_vCont_count { cmd exp_vCont_s exp_vCont_r } {
+proc exec_cmd_expect_vCont_count { cmd exp_vCont_r } {
global gdb_prompt
gdb_test_no_output "set debug remote 1" ""
- set test "${cmd}: vCont;s=${exp_vCont_s} vCont;r=${exp_vCont_r}"
+ set test "${cmd}: vCont;r=${exp_vCont_r}"
set r_counter 0
set s_counter 0
set ret 1
exp_continue
}
-re "$gdb_prompt $" {
- if { $r_counter == ${exp_vCont_r} && $s_counter == ${exp_vCont_s} } {
+ if { $r_counter == ${exp_vCont_r} } {
pass $test
set ret 0
} else {