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

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