mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-17 16:05:56 +08:00
Fix gdb.fortran/array-element.exp failures.
This fixes two FAIL results on this testcase which were caused by a misplaced "continue" command. This testcase used to end inferior's execution too soon, causing the following tests to fail. Now we break right after inferior's loop and perform the rest of the tests there. gdb/testsuite/ChangeLog: * gdb.fortran/array-element.exp: Remove unexpected "continue" command in testcase. Simplify testcase.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2014-09-11 Gabriel Krisman Bertazi <gabriel@krisman.be>
|
||||||
|
|
||||||
|
* gdb.fortran/array-element.exp: Remove unexpected "continue"
|
||||||
|
command in testcase. Simplify testcase.
|
||||||
|
|
||||||
2014-09-10 Joel Brobecker <brobecker@adacore.com>
|
2014-09-10 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
* gdb.dwarf2/dynarr-ptr.exp: Add a few ptype tests.
|
* gdb.dwarf2/dynarr-ptr.exp: Add a few ptype tests.
|
||||||
|
@ -31,18 +31,9 @@ if ![runto sub_] then {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
set bp_location [gdb_get_line_number "continue"]
|
gdb_breakpoint [gdb_get_line_number "continue"]
|
||||||
gdb_test "break $bp_location" \
|
gdb_continue_to_breakpoint "continue"
|
||||||
"Breakpoint.*at.* file .*$srcfile, line $bp_location\\." \
|
|
||||||
"breakpoint at continue"
|
|
||||||
|
|
||||||
gdb_test "continue" \
|
|
||||||
"Continuing\\..*Breakpoint.*" \
|
|
||||||
"continue to breakpoint"
|
|
||||||
gdb_test "print a(1)" ".*1 = 1.*" "print the first element of array a"
|
gdb_test "print a(1)" ".*1 = 1.*" "print the first element of array a"
|
||||||
|
|
||||||
gdb_test "continue" \
|
|
||||||
"Continuing\\..*Breakpoint.*" \
|
|
||||||
"continue to breakpoint once again"
|
|
||||||
gdb_test "print a(2)" ".*2 = 2.*" "print the second element of array a"
|
gdb_test "print a(2)" ".*2 = 2.*" "print the second element of array a"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user