2007-01-30 Denis Pilat * gdb.threads/threadapply.exp: check that frame is not changed by the thread apply all command. Index: testsuite/gdb.threads/threadapply.exp =================================================================== --- testsuite/gdb.threads/threadapply.exp (revision 553) +++ testsuite/gdb.threads/threadapply.exp (working copy) @@ -69,3 +69,10 @@ gdb_test_multiple "define backthread" "d gdb_test "set backtrace limit 3" "" gdb_test "thread apply all backthread" "Thread ..*\\\$1 = 0x14.*Thread ..*\\\$2 = 0x14.*Thread ..*\\\$3 = 0x14.*Thread ..*\\\$4 = 0x14.*Thread ..*\\\$5 = 0x14.*Thread ..*\\\$. = 0x14" +# Go into the thread_function to check that a simple "thread apply" +# does not change the selected frame. +gdb_test "step" "thread_function.*" +gdb_test "up" +gdb_test "thread apply all print 1" +gdb_test "down" "#0.*thread_function.*" "Thread apply must not change the selected frame" +