diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 8b0425b1d4..c5cee45eaa 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2016-01-11 Jan Kratochvil + Pedro Alves + + * gdb.base/funcargs.exp (finish from indirectly called function): + Reintroduce the case for 'First'. + 2016-01-11 Jan Kratochvil Pedro Alves diff --git a/gdb/testsuite/gdb.base/funcargs.exp b/gdb/testsuite/gdb.base/funcargs.exp index e5b6ced2b5..792ca9efd2 100644 --- a/gdb/testsuite/gdb.base/funcargs.exp +++ b/gdb/testsuite/gdb.base/funcargs.exp @@ -1013,6 +1013,13 @@ proc localvars_in_indirect_call { } { # gdb_test_multiple "finish" "finish from indirectly called function" { + -re "\\(\\*pointer_to_call0a\\) \\(c, s, i, l\\);.*First.*$gdb_prompt $" { + # If the branch instruction is not the last instruction in the + # function call line, we'll stop at that line, and need an extra + # "step" to continue the test. + send_gdb "step\n" + exp_continue + } -re ".*\\(\\*pointer_to_call0a\\) \\(c, s, i, l\\);.*Second.*$gdb_prompt $" { pass "finish from indirectly called function" }