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

689258
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
689258
From: Fedora GDB patches <invalid@email.com>
689258
Date: Fri, 27 Oct 2017 21:07:50 +0200
689258
Subject: gdb-6.6-scheduler_locking-step-is-default.patch
689258
689258
;; Make upstream `set scheduler-locking step' as default.
689258
;;=push+jan: How much is scheduler-locking relevant after non-stop?
689258
689258
diff --git a/gdb/infrun.c b/gdb/infrun.c
689258
--- a/gdb/infrun.c
689258
+++ b/gdb/infrun.c
689258
@@ -2193,7 +2193,7 @@ static const char *const scheduler_enums[] = {
689258
   schedlock_replay,
689258
   NULL
689258
 };
689258
-static const char *scheduler_mode = schedlock_replay;
689258
+static const char *scheduler_mode = schedlock_step;
689258
 static void
689258
 show_scheduler_mode (struct ui_file *file, int from_tty,
689258
 		     struct cmd_list_element *c, const char *value)
689258
diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp
689258
--- a/gdb/testsuite/gdb.mi/mi-cli.exp
689258
+++ b/gdb/testsuite/gdb.mi/mi-cli.exp
689258
@@ -199,7 +199,7 @@ mi_expect_stop "breakpoint-hit" "main" "" ".*basics.c" \
689258
 # Test that the token is output even for CLI commands
689258
 # Also test that *stopped includes frame information.
689258
 mi_gdb_test "34 next" \
689258
-    ".*34\\\^running.*\\*running,thread-id=\"all\"" \
689258
+    ".*34\\\^running.*\\*running,thread-id=\"1\"" \
689258
     "34 next: run"
689258
 
689258
 # Test that the new current source line is output to the console
689258
diff --git a/gdb/testsuite/gdb.mi/mi-console.exp b/gdb/testsuite/gdb.mi/mi-console.exp
689258
--- a/gdb/testsuite/gdb.mi/mi-console.exp
689258
+++ b/gdb/testsuite/gdb.mi/mi-console.exp
689258
@@ -60,6 +60,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
689258
 
689258
 mi_run_to_main
689258
 
689258
+# thread-id=\"all\" vs. thread-id=\"1\" below:
689258
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
689258
+
689258
 # The output we get from the target depends on how it is hosted.  If
689258
 # we are semihosted (e.g., the sim or a remote target that supports
689258
 # the File I/O remote protocol extension), we see the target I/O
689258
diff --git a/gdb/testsuite/gdb.mi/mi-logging.exp b/gdb/testsuite/gdb.mi/mi-logging.exp
689258
--- a/gdb/testsuite/gdb.mi/mi-logging.exp
689258
+++ b/gdb/testsuite/gdb.mi/mi-logging.exp
689258
@@ -53,7 +53,7 @@ close $chan
689258
 
689258
 set mi_log_prompt "\[(\]gdb\[)\] \[\r\n\]+"
689258
 
689258
-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] {
689258
+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] {
689258
     pass "log file contents"
689258
 } else {
689258
     fail "log file contents"
689258
@@ -76,7 +76,7 @@ set chan [open $milogfile]
689258
 set logcontent [read $chan]
689258
 close $chan
689258
 
689258
-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] {
689258
+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] {
689258
     pass "redirect log file contents"
689258
 } else {
689258
     fail "redirect log file contents"
689258
diff --git a/gdb/testsuite/gdb.opt/inline-cmds.exp b/gdb/testsuite/gdb.opt/inline-cmds.exp
689258
--- a/gdb/testsuite/gdb.opt/inline-cmds.exp
689258
+++ b/gdb/testsuite/gdb.opt/inline-cmds.exp
689258
@@ -331,7 +331,7 @@ proc mi_cli_step {cli_output_re message} {
689258
 
689258
     send_gdb "interpreter-exec console \"step\"\n"
689258
     gdb_expect {
689258
-	-re "\\^running\r\n\\*running,thread-id=\"all\"\r\n${mi_gdb_prompt}${cli_output_re}" {
689258
+	-re "\\^running\r\n\\*running,thread-id=\"1\"\r\n${mi_gdb_prompt}${cli_output_re}" {
689258
 	    pass $message
689258
 	}
689258
 	timeout {