diff options
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/schedlock.exp | 11 |
2 files changed, 11 insertions, 6 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1286542..824d6fc 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2015-03-24 Pedro Alves <palves@redhat.com> + + * gdb.threads/schedlock.exp (test_step): No longer expect that + "set scheduler-locking step" with "next" over a function call runs + threads unlocked. + 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com> * gdb.mi/mi-pending.exp: Fix output of breakpoint test. 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 |