2012-07-03 18:54:05 +00:00
|
|
|
Index: gdb-7.4.50.20120703/gdb/infrun.c
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2012-07-03 18:54:05 +00:00
|
|
|
--- gdb-7.4.50.20120703.orig/gdb/infrun.c 2012-07-03 20:26:25.060940765 +0200
|
|
|
|
+++ gdb-7.4.50.20120703/gdb/infrun.c 2012-07-03 20:26:32.808929860 +0200
|
|
|
|
@@ -1591,7 +1591,7 @@ static const char *const scheduler_enums
|
2007-06-26 04:37:05 +00:00
|
|
|
schedlock_step,
|
|
|
|
NULL
|
|
|
|
};
|
|
|
|
-static const char *scheduler_mode = schedlock_off;
|
|
|
|
+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)
|
2012-07-03 18:54:05 +00:00
|
|
|
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-console.exp
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2012-07-03 18:54:05 +00:00
|
|
|
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi-console.exp 2012-07-03 20:26:25.060940765 +0200
|
|
|
|
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-console.exp 2012-07-03 20:26:32.809929858 +0200
|
|
|
|
@@ -46,6 +46,9 @@ if { [gdb_compile "${srcdir}/${subdir}/
|
2008-12-14 14:05:20 +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"
|
|
|
|
+
|
|
|
|
# Next over the hello() call which will produce lots of output
|
|
|
|
mi_gdb_test "220-exec-next" \
|
|
|
|
"220\\^running(\r\n\\*running,thread-id=\"all\")?" \
|
2012-07-03 18:54:05 +00:00
|
|
|
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi2-console.exp
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2012-07-03 18:54:05 +00:00
|
|
|
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi2-console.exp 2012-07-03 20:26:25.060940765 +0200
|
|
|
|
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi2-console.exp 2012-07-03 20:26:32.809929858 +0200
|
|
|
|
@@ -46,6 +46,9 @@ if { [gdb_compile "${srcdir}/${subdir}/
|
2008-12-14 14:05:20 +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"
|
|
|
|
+
|
|
|
|
# Next over the hello() call which will produce lots of output
|
2011-07-22 22:41:56 +00:00
|
|
|
mi_gdb_test "220-exec-next" "220\\^running(\r\n)?(\\*running,thread-id=\"all\")?" \
|
|
|
|
"Started step over hello"
|
2012-07-03 18:54:05 +00:00
|
|
|
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-cli.exp
|
2009-08-12 14:36:09 +00:00
|
|
|
===================================================================
|
2012-07-03 18:54:05 +00:00
|
|
|
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi-cli.exp 2012-07-03 20:26:25.060940765 +0200
|
|
|
|
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-cli.exp 2012-07-03 20:26:32.810929856 +0200
|
|
|
|
@@ -175,7 +175,7 @@ mi_execute_to "exec-continue" "breakpoin
|
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"
|
|
|
|
|
|
|
|
if {!$async} {
|
2012-07-03 18:54:05 +00:00
|
|
|
Index: gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-logging.exp
|
|
|
|
===================================================================
|
|
|
|
--- gdb-7.4.50.20120703.orig/gdb/testsuite/gdb.mi/mi-logging.exp 2012-06-29 00:11:23.000000000 +0200
|
|
|
|
+++ gdb-7.4.50.20120703/gdb/testsuite/gdb.mi/mi-logging.exp 2012-07-03 20:29:03.573717651 +0200
|
|
|
|
@@ -56,7 +56,7 @@ close $chan
|
|
|
|
|
|
|
|
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"
|
|
|
|
@@ -79,7 +79,7 @@ set chan [open $milogfile]
|
|
|
|
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"
|