mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-30 21:44:19 +08:00
gdb/reverse: Fix continue_to_breakpoint in syscall testcases.
continue_to_breakpoint always continues to the next breakpoint, not to the one named in parameter. This rendered the tests effectively useless, since marker2 was never reached. gdb/testsuite/ChangeLog: * gdb.reverse/fstatat-reverse.exp: Set breakpoint on marker1 after reaching marker2. * gdb.reverse/getresuid-reverse.exp: Likewise. * gdb.reverse/pipe-reverse.exp: Likewise. * gdb.reverse/readv-reverse.exp: Likewise. * gdb.reverse/recvmsg-reverse.exp: Likewise. * gdb.reverse/time-reverse.exp: Likewise. * gdb.reverse/waitpid-reverse.exp: Likewise and add KFAILs.
This commit is contained in:
parent
b9559b8bc4
commit
7ad8b86c67
@ -1,3 +1,14 @@
|
||||
2015-11-02 Marcin Kościelnicki <koriakin@0x04.net>
|
||||
|
||||
* gdb.reverse/fstatat-reverse.exp: Set breakpoint on marker1 after
|
||||
reaching marker2.
|
||||
* gdb.reverse/getresuid-reverse.exp: Likewise.
|
||||
* gdb.reverse/pipe-reverse.exp: Likewise.
|
||||
* gdb.reverse/readv-reverse.exp: Likewise.
|
||||
* gdb.reverse/recvmsg-reverse.exp: Likewise.
|
||||
* gdb.reverse/time-reverse.exp: Likewise.
|
||||
* gdb.reverse/waitpid-reverse.exp: Likewise and add KFAILs.
|
||||
|
||||
2015-10-30 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* gdb.threads/wp-replication.c (watch_count_done): Remove.
|
||||
|
@ -36,16 +36,16 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variable was recorded properly on syscall, the old contents (0)
|
||||
|
@ -36,16 +36,16 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variables were recorded properly on syscall, the old contents (-1)
|
||||
|
@ -36,16 +36,16 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variables were recorded properly on syscall, the old contents (-1)
|
||||
|
@ -36,16 +36,16 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variables were recorded properly on syscall, the old contents ("")
|
||||
|
@ -36,16 +36,16 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variables were recorded properly on syscall, the old contents will
|
||||
|
@ -36,16 +36,16 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variable was recorded properly on syscall, the old contents (-1)
|
||||
|
@ -36,16 +36,18 @@ if [supports_process_record] {
|
||||
gdb_test_no_output "record" "Turn on process record"
|
||||
}
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
gdb_test "break marker2" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker2"
|
||||
|
||||
setup_kfail "gdb/19187" *-*-*
|
||||
gdb_continue_to_breakpoint "marker2" ".*$srcfile:.*"
|
||||
|
||||
gdb_test "break marker1" \
|
||||
"Breakpoint $decimal at $hex: file .*$srcfile, line $decimal.*" \
|
||||
"set breakpoint at marker1"
|
||||
|
||||
setup_kfail "gdb/19187" *-*-*
|
||||
gdb_test "reverse-continue" ".*$srcfile:$decimal.*" "reverse to marker1"
|
||||
|
||||
# If the variable was recorded properly on syscall, the old contents (-1)
|
||||
|
Loading…
Reference in New Issue
Block a user