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