2010-07-21 21:30:20 +00:00
|
|
|
Index: gdb-7.1.90.20100711/gdb/infrun.c
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2010-07-21 21:30:20 +00:00
|
|
|
--- gdb-7.1.90.20100711.orig/gdb/infrun.c 2010-07-12 10:05:26.000000000 +0200
|
|
|
|
+++ gdb-7.1.90.20100711/gdb/infrun.c 2010-07-12 10:58:56.000000000 +0200
|
|
|
|
@@ -1491,7 +1491,7 @@ static const char *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)
|
2010-07-21 21:30:20 +00:00
|
|
|
Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-console.exp
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2010-07-21 21:30:20 +00:00
|
|
|
--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.mi/mi-console.exp 2010-01-01 08:32:03.000000000 +0100
|
|
|
|
+++ gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-console.exp 2010-07-12 10:58:56.000000000 +0200
|
2008-12-14 14:05:20 +00:00
|
|
|
@@ -47,6 +47,9 @@ if { [gdb_compile "${srcdir}/${subdir}/
|
|
|
|
|
|
|
|
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\")?" \
|
2010-07-21 21:30:20 +00:00
|
|
|
Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi2-console.exp
|
2008-12-14 14:05:20 +00:00
|
|
|
===================================================================
|
2010-07-21 21:30:20 +00:00
|
|
|
--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.mi/mi2-console.exp 2010-05-26 20:12:13.000000000 +0200
|
|
|
|
+++ gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi2-console.exp 2010-07-12 10:59:14.000000000 +0200
|
2008-12-14 14:05:20 +00:00
|
|
|
@@ -47,6 +47,9 @@ if { [gdb_compile "${srcdir}/${subdir}/
|
|
|
|
|
|
|
|
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
|
2010-07-21 21:30:20 +00:00
|
|
|
gdb_test_multiple "220-exec-next" "Started step over hello" {
|
|
|
|
-re "220\\^running\r\n(\\*running,thread-id=\"all\"\r\n)?$mi_gdb_prompt" {
|
|
|
|
Index: gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-cli.exp
|
2009-08-12 14:36:09 +00:00
|
|
|
===================================================================
|
2010-07-21 21:30:20 +00:00
|
|
|
--- gdb-7.1.90.20100711.orig/gdb/testsuite/gdb.mi/mi-cli.exp 2010-01-19 09:00:39.000000000 +0100
|
|
|
|
+++ gdb-7.1.90.20100711/gdb/testsuite/gdb.mi/mi-cli.exp 2010-07-12 10:58:56.000000000 +0200
|
|
|
|
@@ -176,7 +176,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} {
|