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

7a6771
Index: gdb-7.11.90.20160904/gdb/infrun.c
7a6771
===================================================================
7a6771
--- gdb-7.11.90.20160904.orig/gdb/infrun.c	2016-09-04 17:57:12.733853848 +0200
7a6771
+++ gdb-7.11.90.20160904/gdb/infrun.c	2016-09-04 17:57:45.568145391 +0200
7a6771
@@ -2218,7 +2218,7 @@
7a6771
   schedlock_replay,
7a6771
   NULL
7a6771
 };
7a6771
-static const char *scheduler_mode = schedlock_replay;
7a6771
+static const char *scheduler_mode = schedlock_step;
7a6771
 static void
7a6771
 show_scheduler_mode (struct ui_file *file, int from_tty,
7a6771
 		     struct cmd_list_element *c, const char *value)
7a6771
Index: gdb-7.11.90.20160904/gdb/testsuite/gdb.mi/mi-cli.exp
7a6771
===================================================================
7a6771
--- gdb-7.11.90.20160904.orig/gdb/testsuite/gdb.mi/mi-cli.exp	2016-09-04 17:57:12.733853848 +0200
7a6771
+++ gdb-7.11.90.20160904/gdb/testsuite/gdb.mi/mi-cli.exp	2016-09-04 17:57:45.569145399 +0200
7a6771
@@ -199,7 +199,7 @@
7a6771
 # Test that the token is output even for CLI commands
7a6771
 # Also test that *stopped includes frame information.
7a6771
 mi_gdb_test "34 next" \
7a6771
-    ".*34\\\^running.*\\*running,thread-id=\"all\"" \
7a6771
+    ".*34\\\^running.*\\*running,thread-id=\"1\"" \
7a6771
     "34 next: run"
7a6771
 
7a6771
 # Test that the new current source line is output to the console
7a6771
Index: gdb-7.11.90.20160904/gdb/testsuite/gdb.mi/mi-logging.exp
7a6771
===================================================================
7a6771
--- gdb-7.11.90.20160904.orig/gdb/testsuite/gdb.mi/mi-logging.exp	2016-09-04 17:57:12.733853848 +0200
7a6771
+++ gdb-7.11.90.20160904/gdb/testsuite/gdb.mi/mi-logging.exp	2016-09-04 17:57:45.569145399 +0200
7a6771
@@ -53,7 +53,7 @@
7a6771
 
7a6771
 set mi_log_prompt "\[(\]gdb\[)\] \[\r\n\]+"
7a6771
 
7a6771
-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] {
7a6771
+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] {
7a6771
     pass "Log file contents"
7a6771
 } else {
7a6771
     fail "Log file contents"
7a6771
@@ -76,7 +76,7 @@
7a6771
 set logcontent [read $chan]
7a6771
 close $chan
7a6771
 
7a6771
-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] {
7a6771
+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] {
7a6771
     pass "Redirect log file contents"
7a6771
 } else {
7a6771
     fail "Redirect log file contents"
7a6771
Index: gdb-7.11.90.20160904/gdb/testsuite/gdb.mi/mi-console.exp
7a6771
===================================================================
7a6771
--- gdb-7.11.90.20160904.orig/gdb/testsuite/gdb.mi/mi-console.exp	2016-09-04 17:57:12.733853848 +0200
7a6771
+++ gdb-7.11.90.20160904/gdb/testsuite/gdb.mi/mi-console.exp	2016-09-04 17:57:45.569145399 +0200
7a6771
@@ -60,6 +60,9 @@
7a6771
 
7a6771
 mi_run_to_main
7a6771
 
7a6771
+# thread-id=\"all\" vs. thread-id=\"1\" below:
7a6771
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
7a6771
+
7a6771
 # The output we get from the target depends on how it is hosted.  If
7a6771
 # we are semihosted (e.g., the sim or a remote target that supports
7a6771
 # the File I/O remote protocol extension), we see the target I/O
7a6771
Index: gdb-7.11.90.20160904/gdb/testsuite/gdb.opt/inline-cmds.exp
7a6771
===================================================================
7a6771
--- gdb-7.11.90.20160904.orig/gdb/testsuite/gdb.opt/inline-cmds.exp	2016-09-04 17:59:44.600202299 +0200
7a6771
+++ gdb-7.11.90.20160904/gdb/testsuite/gdb.opt/inline-cmds.exp	2016-09-04 18:00:04.616380027 +0200
7a6771
@@ -331,7 +331,7 @@
7a6771
 
7a6771
     send_gdb "interpreter-exec console \"step\"\n"
7a6771
     gdb_expect {
7a6771
-	-re "\\^running\r\n\\*running,thread-id=\"all\"\r\n${mi_gdb_prompt}${cli_output_re}" {
7a6771
+	-re "\\^running\r\n\\*running,thread-id=\"1\"\r\n${mi_gdb_prompt}${cli_output_re}" {
7a6771
 	    pass $message
7a6771
 	}
7a6771
 	timeout {