diff options
Diffstat (limited to 'gdb/testsuite/gdb.threads/schedlock.exp')
-rw-r--r-- | gdb/testsuite/gdb.threads/schedlock.exp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.threads/schedlock.exp b/gdb/testsuite/gdb.threads/schedlock.exp index b47af77..54e847e 100644 --- a/gdb/testsuite/gdb.threads/schedlock.exp +++ b/gdb/testsuite/gdb.threads/schedlock.exp @@ -285,8 +285,7 @@ proc test_step { schedlock cmd call_function } { step_ten_loops $cmd - # "next" lets other threads run while stepping over functions. - if { $schedlock == "on" || ($schedlock == "step" && !$call_function) } { + if { $schedlock == "on" || $schedlock == "step" } { set locked 1 } else { set locked 0 @@ -302,10 +301,10 @@ foreach schedlock {"off" "step" "on"} { test_step $schedlock "step" 0 } with_test_prefix "cmd=next" { - # With "next", and schedlock "step", threads run unlocked - # when stepping over a function call. This exercises both - # with and without a function call. Without a function - # call "next" should behave just like "step". + # In GDB <= 7.9, with schedlock "step", "next" would + # unlock threads when stepping over a function call. This + # exercises "next" with and without a function call. WRT + # "schedlock step", "next" should behave just like "step". foreach call_function {0 1} { with_test_prefix "call_function=$call_function" { test_step $schedlock "next" $call_function |