| Index: gdb/testsuite/gdb.threads/manythreads.exp
|
| diff --git a/gdb/testsuite/gdb.threads/manythreads.exp b/gdb/testsuite/gdb.threads/manythreads.exp
|
| index c863ee19c6e9984a99c2038e4a3a0bb2b01581cd..5d21ba914d08f2785526c97129d19b82f3981be4 100644
|
| --- a/gdb/testsuite/gdb.threads/manythreads.exp
|
| +++ b/gdb/testsuite/gdb.threads/manythreads.exp
|
| @@ -1,5 +1,5 @@
|
| # manythreads.exp -- Expect script to test stopping many threads
|
| -# Copyright (C) 2004, 2006-2012 Free Software Foundation, Inc.
|
| +# Copyright (C) 2004-2013 Free Software Foundation, Inc.
|
|
|
| # This program is free software; you can redistribute it and/or modify
|
| # it under the terms of the GNU General Public License as published by
|
| @@ -19,7 +19,13 @@
|
|
|
| standard_testfile
|
|
|
| -if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable debug] != "" } {
|
| +set opts { debug }
|
| +if [info exists DEBUG] {
|
| + # make check RUNTESTFLAGS='gdb.threads/manythreads.exp DEBUG=1'
|
| + lappend opts "additional_flags=-DDEBUG"
|
| +}
|
| +
|
| +if {[gdb_compile_pthreads "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable $opts] != "" } {
|
| return -1
|
| }
|
|
|
| @@ -59,9 +65,6 @@ gdb_test_multiple "" "stop threads 1" {
|
| -re "\\\[\[^\]\]* exited\\\]\r\n" {
|
| exp_continue
|
| }
|
| - -re "Thread \[^\n\]* executing\r\n" {
|
| - exp_continue
|
| - }
|
| -re "Program received signal SIGINT.*$gdb_prompt $" {
|
| pass "$message"
|
| }
|
| @@ -113,9 +116,6 @@ remote_expect host 1 {
|
| -re "\\\[\[^\]\]* exited\\\]\r\n" {
|
| exp_continue -continue_timer
|
| }
|
| - -re "Thread \[^\n\]* executing\r\n" {
|
| - exp_continue -continue_timer
|
| - }
|
| -re "Program received signal SIGINT.*$gdb_prompt $" {
|
| if { $failed == 0 } {
|
| fail "check for duplicate SIGINT"
|
| @@ -141,9 +141,6 @@ gdb_test_multiple "" "stop threads 2" {
|
| -re "\\\[\[^\]\]* exited\\\]\r\n" {
|
| exp_continue
|
| }
|
| - -re "Thread \[^\n\]* executing\r\n" {
|
| - exp_continue
|
| - }
|
| -re "Program received signal SIGINT.*$gdb_prompt $" {
|
| pass "$message"
|
| }
|
|
|