Blame SOURCES/gdb-6.6-scheduler_locking-step-is-default.patch

01917d
Index: gdb-7.5.50.20130118/gdb/infrun.c
01917d
===================================================================
01917d
--- gdb-7.5.50.20130118.orig/gdb/infrun.c	2013-01-19 20:56:34.142917416 +0100
01917d
+++ gdb-7.5.50.20130118/gdb/infrun.c	2013-01-19 20:56:34.662918474 +0100
01917d
@@ -1628,7 +1628,7 @@ static const char *const scheduler_enums
01917d
   schedlock_step,
01917d
   NULL
01917d
 };
01917d
-static const char *scheduler_mode = schedlock_off;
01917d
+static const char *scheduler_mode = schedlock_step;
01917d
 static void
01917d
 show_scheduler_mode (struct ui_file *file, int from_tty,
01917d
 		     struct cmd_list_element *c, const char *value)
01917d
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.mi/mi-cli.exp
01917d
===================================================================
01917d
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.mi/mi-cli.exp	2013-01-01 07:41:24.000000000 +0100
01917d
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.mi/mi-cli.exp	2013-01-19 20:56:34.662918474 +0100
01917d
@@ -163,7 +163,7 @@ mi_execute_to "exec-continue" "breakpoin
01917d
 # Test that the token is output even for CLI commands
01917d
 # Also test that *stopped includes frame information.
01917d
 mi_gdb_test "34 next" \
01917d
-    ".*34\\\^running.*\\*running,thread-id=\"all\"" \
01917d
+    ".*34\\\^running.*\\*running,thread-id=\"1\"" \
01917d
     "34 next: run"
01917d
 
01917d
 if {!$async} {
01917d
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.mi/mi-logging.exp
01917d
===================================================================
01917d
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.mi/mi-logging.exp	2013-01-01 07:41:24.000000000 +0100
01917d
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.mi/mi-logging.exp	2013-01-19 20:56:34.662918474 +0100
01917d
@@ -53,7 +53,7 @@ close $chan
01917d
 
01917d
 set mi_log_prompt "\[(\]gdb\[)\] \[\r\n\]+"
01917d
 
01917d
-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] {
01917d
+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] {
01917d
     pass "Log file contents"
01917d
 } else {
01917d
     fail "Log file contents"
01917d
@@ -76,7 +76,7 @@ set chan [open $milogfile]
01917d
 set logcontent [read $chan]
01917d
 close $chan
01917d
 
01917d
-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] {
01917d
+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] {
01917d
     pass "Redirect log file contents"
01917d
 } else {
01917d
     fail "Redirect log file contents"
01917d
Index: gdb-7.5.50.20130118/gdb/testsuite/gdb.mi/mi-console.exp
01917d
===================================================================
01917d
--- gdb-7.5.50.20130118.orig/gdb/testsuite/gdb.mi/mi-console.exp	2013-01-01 07:41:24.000000000 +0100
01917d
+++ gdb-7.5.50.20130118/gdb/testsuite/gdb.mi/mi-console.exp	2013-01-19 20:56:55.783961145 +0100
01917d
@@ -45,6 +45,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/
01917d
 
01917d
 mi_run_to_main
01917d
 
01917d
+# thread-id=\"all\" vs. thread-id=\"1\" below:
01917d
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
01917d
+
01917d
 # Next over the hello() call which will produce lots of output
01917d
 mi_gdb_test "220-exec-next" \
01917d
 	    "220\\^running(\r\n\\*running,thread-id=\"all\")?" \