2015-11-03 21:28:36 +00:00
|
|
|
Index: gdb-7.10.50.20151022/gdb/infrun.c
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2015-11-03 21:28:36 +00:00
|
|
|
--- gdb-7.10.50.20151022.orig/gdb/infrun.c 2015-10-22 22:30:15.887224452 +0200
|
|
|
|
+++ gdb-7.10.50.20151022/gdb/infrun.c 2015-10-22 22:30:25.742282478 +0200
|
|
|
|
@@ -2175,7 +2175,7 @@ static const char *const scheduler_enums
|
|
|
|
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)
|
2015-11-03 21:28:36 +00:00
|
|
|
Index: gdb-7.10.50.20151022/gdb/testsuite/gdb.mi/mi-cli.exp
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2015-11-03 21:28:36 +00:00
|
|
|
--- gdb-7.10.50.20151022.orig/gdb/testsuite/gdb.mi/mi-cli.exp 2015-10-22 22:29:38.352003447 +0200
|
|
|
|
+++ gdb-7.10.50.20151022/gdb/testsuite/gdb.mi/mi-cli.exp 2015-10-22 22:30:15.888224458 +0200
|
|
|
|
@@ -199,7 +199,7 @@ mi_expect_stop "breakpoint-hit" "main" "
|
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
|
2015-11-03 21:28:36 +00:00
|
|
|
Index: gdb-7.10.50.20151022/gdb/testsuite/gdb.mi/mi-logging.exp
|
2012-07-03 18:54:05 +00:00
|
|
|
===================================================================
|
2015-11-03 21:28:36 +00:00
|
|
|
--- gdb-7.10.50.20151022.orig/gdb/testsuite/gdb.mi/mi-logging.exp 2015-10-22 22:29:38.352003447 +0200
|
|
|
|
+++ gdb-7.10.50.20151022/gdb/testsuite/gdb.mi/mi-logging.exp 2015-10-22 22:30:15.888224458 +0200
|
2013-01-19 22:41:55 +00:00
|
|
|
@@ -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] {
|
|
|
|
pass "Log file contents"
|
|
|
|
} else {
|
|
|
|
fail "Log file contents"
|
2013-01-19 22:41:55 +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] {
|
|
|
|
pass "Redirect log file contents"
|
|
|
|
} else {
|
|
|
|
fail "Redirect log file contents"
|
2015-11-03 21:28:36 +00:00
|
|
|
Index: gdb-7.10.50.20151022/gdb/testsuite/gdb.mi/mi-console.exp
|
2013-01-19 22:41:55 +00:00
|
|
|
===================================================================
|
2015-11-03 21:28:36 +00:00
|
|
|
--- gdb-7.10.50.20151022.orig/gdb/testsuite/gdb.mi/mi-console.exp 2015-10-22 22:29:38.353003453 +0200
|
|
|
|
+++ gdb-7.10.50.20151022/gdb/testsuite/gdb.mi/mi-console.exp 2015-10-22 22:30:15.888224458 +0200
|
2014-02-07 18:38:14 +00:00
|
|
|
@@ -60,6 +60,9 @@ if { [gdb_compile "${srcdir}/${subdir}/
|
2013-01-19 22:41:55 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
+
|
2014-02-07 18:38:14 +00:00
|
|
|
# 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
|