2017-12-10 22:00:49 +00:00
|
|
|
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
|
2017-12-04 19:24:00 +00:00
|
|
|
From: Fedora GDB patches <invalid@email.com>
|
|
|
|
Date: Fri, 27 Oct 2017 21:07:50 +0200
|
|
|
|
Subject: gdb-6.6-scheduler_locking-step-is-default.patch
|
|
|
|
|
|
|
|
FileName: gdb-6.6-scheduler_locking-step-is-default.patch
|
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
;; Make upstream `set scheduler-locking step' as default.
|
|
|
|
;;=push+jan: How much is scheduler-locking relevant after non-stop?
|
2017-12-04 19:24:00 +00:00
|
|
|
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/infrun.c b/gdb/infrun.c
|
2018-01-31 22:47:02 +00:00
|
|
|
index 23439979b5..1d0f731954 100644
|
2017-12-08 04:31:26 +00:00
|
|
|
--- a/gdb/infrun.c
|
|
|
|
+++ b/gdb/infrun.c
|
|
|
|
@@ -2202,7 +2202,7 @@ static const char *const scheduler_enums[] = {
|
2015-11-03 21:28:36 +00:00
|
|
|
schedlock_replay,
|
2007-06-26 04:37:05 +00:00
|
|
|
NULL
|
|
|
|
};
|
2015-11-03 21:28:36 +00:00
|
|
|
-static const char *scheduler_mode = schedlock_replay;
|
2007-06-26 04:37:05 +00:00
|
|
|
+static const char *scheduler_mode = schedlock_step;
|
|
|
|
static void
|
|
|
|
show_scheduler_mode (struct ui_file *file, int from_tty,
|
|
|
|
struct cmd_list_element *c, const char *value)
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp
|
2018-01-10 19:21:10 +00:00
|
|
|
index 6ce6439eb7..4f405b5fc1 100644
|
2017-12-08 04:31:26 +00:00
|
|
|
--- a/gdb/testsuite/gdb.mi/mi-cli.exp
|
|
|
|
+++ b/gdb/testsuite/gdb.mi/mi-cli.exp
|
|
|
|
@@ -199,7 +199,7 @@ mi_expect_stop "breakpoint-hit" "main" "" ".*basics.c" \
|
2009-08-12 14:36:09 +00:00
|
|
|
# Test that the token is output even for CLI commands
|
|
|
|
# Also test that *stopped includes frame information.
|
|
|
|
mi_gdb_test "34 next" \
|
|
|
|
- ".*34\\\^running.*\\*running,thread-id=\"all\"" \
|
|
|
|
+ ".*34\\\^running.*\\*running,thread-id=\"1\"" \
|
|
|
|
"34 next: run"
|
|
|
|
|
2014-06-19 20:14:32 +00:00
|
|
|
# Test that the new current source line is output to the console
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/testsuite/gdb.mi/mi-console.exp b/gdb/testsuite/gdb.mi/mi-console.exp
|
2018-01-10 19:21:10 +00:00
|
|
|
index ec4b006018..05cf7fb889 100644
|
2017-12-08 04:31:26 +00:00
|
|
|
--- a/gdb/testsuite/gdb.mi/mi-console.exp
|
|
|
|
+++ b/gdb/testsuite/gdb.mi/mi-console.exp
|
|
|
|
@@ -60,6 +60,9 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
|
|
|
|
|
|
|
|
mi_run_to_main
|
|
|
|
|
|
|
|
+# thread-id=\"all\" vs. thread-id=\"1\" below:
|
|
|
|
+mi_gdb_test "210-gdb-set scheduler-locking off" "210\\^done" "set scheduler-locking off"
|
|
|
|
+
|
|
|
|
# The output we get from the target depends on how it is hosted. If
|
|
|
|
# we are semihosted (e.g., the sim or a remote target that supports
|
|
|
|
# the File I/O remote protocol extension), we see the target I/O
|
|
|
|
diff --git a/gdb/testsuite/gdb.mi/mi-logging.exp b/gdb/testsuite/gdb.mi/mi-logging.exp
|
2018-01-10 19:21:10 +00:00
|
|
|
index b09cde2d37..e51d46edb5 100644
|
2017-12-08 04:31:26 +00:00
|
|
|
--- a/gdb/testsuite/gdb.mi/mi-logging.exp
|
|
|
|
+++ b/gdb/testsuite/gdb.mi/mi-logging.exp
|
|
|
|
@@ -53,7 +53,7 @@ close $chan
|
2012-07-03 18:54:05 +00:00
|
|
|
|
|
|
|
set mi_log_prompt "\[(\]gdb\[)\] \[\r\n\]+"
|
|
|
|
|
|
|
|
-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] {
|
|
|
|
+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] {
|
2017-02-27 21:30:32 +00:00
|
|
|
pass "log file contents"
|
2012-07-03 18:54:05 +00:00
|
|
|
} else {
|
2017-02-27 21:30:32 +00:00
|
|
|
fail "log file contents"
|
2017-12-08 04:31:26 +00:00
|
|
|
@@ -76,7 +76,7 @@ set chan [open $milogfile]
|
2012-07-03 18:54:05 +00:00
|
|
|
set logcontent [read $chan]
|
|
|
|
close $chan
|
|
|
|
|
|
|
|
-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] {
|
|
|
|
+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] {
|
2017-02-27 21:30:32 +00:00
|
|
|
pass "redirect log file contents"
|
2012-07-03 18:54:05 +00:00
|
|
|
} else {
|
2017-02-27 21:30:32 +00:00
|
|
|
fail "redirect log file contents"
|
2017-12-08 04:31:26 +00:00
|
|
|
diff --git a/gdb/testsuite/gdb.opt/inline-cmds.exp b/gdb/testsuite/gdb.opt/inline-cmds.exp
|
2018-01-10 19:21:10 +00:00
|
|
|
index 5227d63f5d..782f31c080 100644
|
2017-12-08 04:31:26 +00:00
|
|
|
--- a/gdb/testsuite/gdb.opt/inline-cmds.exp
|
|
|
|
+++ b/gdb/testsuite/gdb.opt/inline-cmds.exp
|
|
|
|
@@ -331,7 +331,7 @@ proc mi_cli_step {cli_output_re message} {
|
2016-09-04 17:32:35 +00:00
|
|
|
|
|
|
|
send_gdb "interpreter-exec console \"step\"\n"
|
|
|
|
gdb_expect {
|
|
|
|
- -re "\\^running\r\n\\*running,thread-id=\"all\"\r\n${mi_gdb_prompt}${cli_output_re}" {
|
|
|
|
+ -re "\\^running\r\n\\*running,thread-id=\"1\"\r\n${mi_gdb_prompt}${cli_output_re}" {
|
|
|
|
pass $message
|
|
|
|
}
|
|
|
|
timeout {
|