Jan Kratochvil 11eae30
Index: gdb-7.4.50.20120703/gdb/infrun.c
407ebe9
===================================================================
Jan Kratochvil 11eae30
--- gdb-7.4.50.20120703.orig/gdb/infrun.c	2012-07-03 20:26:25.060940765 +0200
Jan Kratochvil 11eae30
+++ gdb-7.4.50.20120703/gdb/infrun.c	2012-07-03 20:26:32.808929860 +0200
Jan Kratochvil 11eae30
@@ -1591,7 +1591,7 @@ static const char *const scheduler_enums
c78c51c
   schedlock_step,
c78c51c
   NULL
c78c51c
 };
c78c51c
-static const char *scheduler_mode = schedlock_off;
c78c51c
+static const char *scheduler_mode = schedlock_step;
c78c51c
 static void
c78c51c
 show_scheduler_mode (struct ui_file *file, int from_tty,
c78c51c
 		     struct cmd_list_element *c, const char *value)
Jan Kratochvil 11eae30
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-console.exp
407ebe9
===================================================================
Jan Kratochvil 11eae30
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi-console.exp	2012-07-03 20:26:25.060940765 +0200
Jan Kratochvil 11eae30
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-console.exp	2012-07-03 20:26:32.809929858 +0200
Jan Kratochvil 11eae30
@@ -46,6 +46,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/
407ebe9
 
407ebe9
 mi_run_to_main
407ebe9
 
407ebe9
+# thread-id=\"all\" vs. thread-id=\"1\" below:
407ebe9
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
407ebe9
+
407ebe9
 # Next over the hello() call which will produce lots of output
407ebe9
 mi_gdb_test "220-exec-next" \
407ebe9
 	    "220\\^running(\r\n\\*running,thread-id=\"all\")?" \
Jan Kratochvil 11eae30
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi2-console.exp
407ebe9
===================================================================
Jan Kratochvil 11eae30
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi2-console.exp	2012-07-03 20:26:25.060940765 +0200
Jan Kratochvil 11eae30
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi2-console.exp	2012-07-03 20:26:32.809929858 +0200
Jan Kratochvil 11eae30
@@ -46,6 +46,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/
407ebe9
 
407ebe9
 mi_run_to_main
407ebe9
 
407ebe9
+# thread-id=\"all\" vs. thread-id=\"1\" below:
407ebe9
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
407ebe9
+
407ebe9
 # Next over the hello() call which will produce lots of output
Jan Kratochvil 3b55f78
 mi_gdb_test "220-exec-next" "220\\^running(\r\n)?(\\*running,thread-id=\"all\")?" \
Jan Kratochvil 3b55f78
 	"Started step over hello"
Jan Kratochvil 11eae30
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-cli.exp
2280d55
===================================================================
Jan Kratochvil 11eae30
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi-cli.exp	2012-07-03 20:26:25.060940765 +0200
Jan Kratochvil 11eae30
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-cli.exp	2012-07-03 20:26:32.810929856 +0200
Jan Kratochvil 11eae30
@@ -175,7 +175,7 @@ mi_execute_to "exec-continue" "breakpoin
2280d55
 # Test that the token is output even for CLI commands
2280d55
 # Also test that *stopped includes frame information.
2280d55
 mi_gdb_test "34 next" \
2280d55
-    ".*34\\\^running.*\\*running,thread-id=\"all\"" \
2280d55
+    ".*34\\\^running.*\\*running,thread-id=\"1\"" \
2280d55
     "34 next: run"
2280d55
 
2280d55
 if {!$async} {
Jan Kratochvil 11eae30
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-logging.exp
Jan Kratochvil 11eae30
===================================================================
Jan Kratochvil 11eae30
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi-logging.exp	2012-06-29 00:11:23.000000000 +0200
Jan Kratochvil 11eae30
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-logging.exp	2012-07-03 20:29:03.573717651 +0200
Jan Kratochvil 11eae30
@@ -56,7 +56,7 @@ close $chan
Jan Kratochvil 11eae30
 
Jan Kratochvil 11eae30
 set mi_log_prompt "\[(\]gdb\[)\] \[\r\n\]+"
Jan Kratochvil 11eae30
 
Jan Kratochvil 11eae30
-if [regexp "\\^done\[\r\n\]+$mi_log_prompt\\^running\[\r\n\]+\\*running,thread-id=\"all\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt\\^running\[\r\n\]+\\*running,thread-id=\"all\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt" $logcontent] {
Jan Kratochvil 11eae30
+if [regexp "\\^done\[\r\n\]+$mi_log_prompt\\^running\[\r\n\]+\\*running,thread-id=\"1\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt\\^running\[\r\n\]+\\*running,thread-id=\"1\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt" $logcontent] {
Jan Kratochvil 11eae30
     pass "Log file contents"
Jan Kratochvil 11eae30
 } else {
Jan Kratochvil 11eae30
     fail "Log file contents"
Jan Kratochvil 11eae30
@@ -79,7 +79,7 @@ set chan [open $milogfile]
Jan Kratochvil 11eae30
 set logcontent [read $chan]
Jan Kratochvil 11eae30
 close $chan
Jan Kratochvil 11eae30
 
Jan Kratochvil 11eae30
-if [regexp "1001\\^done\[\r\n\]+$mi_log_prompt.*1002\\^running\[\r\n\]+\\*running,thread-id=\"all\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt.*1003\\^running\[\r\n\]+\\*running,thread-id=\"all\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt" $logcontent] {
Jan Kratochvil 11eae30
+if [regexp "1001\\^done\[\r\n\]+$mi_log_prompt.*1002\\^running\[\r\n\]+\\*running,thread-id=\"1\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt.*1003\\^running\[\r\n\]+\\*running,thread-id=\"1\"\[\r\n\]+$mi_log_prompt\\*stopped,reason=\"end-stepping-range\",.*\[\r\n\]+$mi_log_prompt" $logcontent] {
Jan Kratochvil 11eae30
     pass "Redirect log file contents"
Jan Kratochvil 11eae30
 } else {
Jan Kratochvil 11eae30
     fail "Redirect log file contents"