diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-04-10 21:33:55 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-04-10 21:33:55 +0000 |
commit | 3d7c72cfff6c8f180d75b4d4c6331043696d2ed7 (patch) | |
tree | 224450d91ec9c11beeb44f4bdb846674fe278581 /gdb/testsuite/gdb.c++/derivation.exp | |
parent | 56bd178a9001e428aea25d972ee7996270e6ef53 (diff) | |
download | gdb-3d7c72cfff6c8f180d75b4d4c6331043696d2ed7.tar.gz |
Merge with mainline.cvs/cagney_frameaddr-20030403-branchcagney_frameaddr-20030403-branch
Diffstat (limited to 'gdb/testsuite/gdb.c++/derivation.exp')
-rw-r--r-- | gdb/testsuite/gdb.c++/derivation.exp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.c++/derivation.exp b/gdb/testsuite/gdb.c++/derivation.exp index 9128730bcd9..10e3844b0ad 100644 --- a/gdb/testsuite/gdb.c++/derivation.exp +++ b/gdb/testsuite/gdb.c++/derivation.exp @@ -300,6 +300,24 @@ gdb_expect { timeout { fail "(timeout) print value of g_instance.afoo()" } } + +# If GDB fails to restore the selected frame properly after the +# inferior function call above (see GDB PR 1155 for an explanation of +# why this might happen), all the subsequent tests will fail. We +# should detect report that failure, but let the marker call finish so +# that the rest of the tests can run undisturbed. +gdb_test_multiple "frame" "re-selected 'main' frame after inferior call" { + -re "#0 marker1.*$gdb_prompt $" { + setup_kfail "gdb/1155" s390-*-linux-gnu + fail "re-selected 'main' frame after inferior call" + gdb_test "finish" ".*main.*at .*derivation.cc:21\[79\].*" \ + "finish call to marker1" + } + -re "#1 ($hex in )?main.*$gdb_prompt $" { + pass "re-selected 'main' frame after inferior call" + } +} + send_gdb "print g_instance.bfoo()\n" gdb_expect { -re ".\[0-9\]* = 2.*$gdb_prompt $" { |