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

f9426a
Index: gdb-7.7.50.20140609/gdb/infrun.c
f9426a
===================================================================
f9426a
--- gdb-7.7.50.20140609.orig/gdb/infrun.c	2014-06-13 20:08:51.225699203 +0200
f9426a
+++ gdb-7.7.50.20140609/gdb/infrun.c	2014-06-13 20:08:55.515703466 +0200
f9426a
@@ -1661,7 +1661,7 @@ static const char *const scheduler_enums
f9426a
   schedlock_step,
f9426a
   NULL
f9426a
 };
f9426a
-static const char *scheduler_mode = schedlock_off;
f9426a
+static const char *scheduler_mode = schedlock_step;
f9426a
 static void
f9426a
 show_scheduler_mode (struct ui_file *file, int from_tty,
f9426a
 		     struct cmd_list_element *c, const char *value)
f9426a
Index: gdb-7.7.50.20140609/gdb/testsuite/gdb.mi/mi-cli.exp
f9426a
===================================================================
f9426a
--- gdb-7.7.50.20140609.orig/gdb/testsuite/gdb.mi/mi-cli.exp	2014-06-13 20:08:55.515703466 +0200
f9426a
+++ gdb-7.7.50.20140609/gdb/testsuite/gdb.mi/mi-cli.exp	2014-06-13 20:09:24.862732832 +0200
f9426a
@@ -181,7 +181,7 @@ mi_expect_stop "breakpoint-hit" "main" "
f9426a
 # Test that the token is output even for CLI commands
f9426a
 # Also test that *stopped includes frame information.
f9426a
 mi_gdb_test "34 next" \
f9426a
-    ".*34\\\^running.*\\*running,thread-id=\"all\"" \
f9426a
+    ".*34\\\^running.*\\*running,thread-id=\"1\"" \
f9426a
     "34 next: run"
f9426a
 
f9426a
 # Test that the new current source line is output to the console
f9426a
Index: gdb-7.7.50.20140609/gdb/testsuite/gdb.mi/mi-logging.exp
f9426a
===================================================================
f9426a
--- gdb-7.7.50.20140609.orig/gdb/testsuite/gdb.mi/mi-logging.exp	2014-06-13 20:08:51.227699205 +0200
f9426a
+++ gdb-7.7.50.20140609/gdb/testsuite/gdb.mi/mi-logging.exp	2014-06-13 20:08:55.516703467 +0200
f9426a
@@ -53,7 +53,7 @@ close $chan
f9426a
 
f9426a
 set mi_log_prompt "\[(\]gdb\[)\] \[\r\n\]+"
f9426a
 
f9426a
-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] {
f9426a
+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] {
f9426a
     pass "Log file contents"
f9426a
 } else {
f9426a
     fail "Log file contents"
f9426a
@@ -76,7 +76,7 @@ set chan [open $milogfile]
f9426a
 set logcontent [read $chan]
f9426a
 close $chan
f9426a
 
f9426a
-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] {
f9426a
+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] {
f9426a
     pass "Redirect log file contents"
f9426a
 } else {
f9426a
     fail "Redirect log file contents"
f9426a
Index: gdb-7.7.50.20140609/gdb/testsuite/gdb.mi/mi-console.exp
f9426a
===================================================================
f9426a
--- gdb-7.7.50.20140609.orig/gdb/testsuite/gdb.mi/mi-console.exp	2014-06-13 20:08:51.227699205 +0200
f9426a
+++ gdb-7.7.50.20140609/gdb/testsuite/gdb.mi/mi-console.exp	2014-06-13 20:08:55.516703467 +0200
f9426a
@@ -60,6 +60,9 @@ if  { [gdb_compile "${srcdir}/${subdir}/
f9426a
 
f9426a
 mi_run_to_main
f9426a
 
f9426a
+# thread-id=\"all\" vs. thread-id=\"1\" below:
f9426a
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
f9426a
+
f9426a
 # The output we get from the target depends on how it is hosted.  If
f9426a
 # we are semihosted (e.g., the sim or a remote target that supports
f9426a
 # the File I/O remote protocol extension), we see the target I/O