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

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