# manythreads.exp -- Expect script to test stopping many threads
-# Copyright (C) 2004-2016 Free Software Foundation, Inc.
+# Copyright (C) 2004-2020 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
}
-re "$gdb_prompt $" {
# Note that with this regex order, if GDB emits [New
- # Thread ...] output between "Program received signal" and
- # the prompt, the "received signal" regex won't match.
+ # Thread ...] output between "Thread NNN received signal"
+ # and the prompt, the "received signal" regex won't match.
# That's good, as if we see that happening, it's a
# regression.
#
-re "\\\[\[^\]\]* exited\\\]\r\n" {
exp_continue -continue_timer
}
- -re "Program received signal SIGINT.*$gdb_prompt $" {
+ -re " received signal SIGINT.*$gdb_prompt $" {
if { $failed == 0 } {
fail "check for duplicate SIGINT"
}