mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 06:17:47 +08:00
More "Program" -> "Thread NN received signal" testsuite adjustment
These tests should have been adjusted by f303dbd60d9c (Fix PR threads/19422 - show which thread caused stop), but clearly I had missed grepping for potential-fail cases. gdb/testsuite/ChangeLog 2016-03-09 Pedro Alves <palves@redhat.com> * gdb.threads/attach-into-signal.exp: Adjust to "Program received signal" -> "Thread NN received signal" output change. * gdb.threads/ia64-sigill.exp: Likewise. * gdb.threads/linux-dp.exp: Likewise. * gdb.threads/manythreads.exp: Likewise. * gdb.threads/pending-step.exp: Likewise. * gdb.threads/print-threads.exp: Likewise. * gdb.threads/sigstep-threads.exp: Likewise. * gdb.threads/staticthreads.exp: Likewise. * gdb.threads/tls.exp: Likewise.
This commit is contained in:
@ -1,3 +1,16 @@
|
|||||||
|
2016-03-09 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
|
* gdb.threads/attach-into-signal.exp: Adjust to "Program received
|
||||||
|
signal" -> "Thread NN received signal" output change.
|
||||||
|
* gdb.threads/ia64-sigill.exp: Likewise.
|
||||||
|
* gdb.threads/linux-dp.exp: Likewise.
|
||||||
|
* gdb.threads/manythreads.exp: Likewise.
|
||||||
|
* gdb.threads/pending-step.exp: Likewise.
|
||||||
|
* gdb.threads/print-threads.exp: Likewise.
|
||||||
|
* gdb.threads/sigstep-threads.exp: Likewise.
|
||||||
|
* gdb.threads/staticthreads.exp: Likewise.
|
||||||
|
* gdb.threads/tls.exp: Likewise.
|
||||||
|
|
||||||
2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
|
2016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
|
||||||
|
|
||||||
* gdb.trace/ftrace.exp: Set arg0exp for ppc.
|
* gdb.trace/ftrace.exp: Set arg0exp for ppc.
|
||||||
|
@ -86,7 +86,7 @@ proc corefunc { threadtype executable } {
|
|||||||
# Main test:
|
# Main test:
|
||||||
set test "attach (pass $passes), pending signal catch"
|
set test "attach (pass $passes), pending signal catch"
|
||||||
if {[gdb_test_multiple "attach $testpid" $test {
|
if {[gdb_test_multiple "attach $testpid" $test {
|
||||||
-re "Attaching to program.*`?$escapedbinfile'?, process $testpid.*Program received signal SIGALRM.*$gdb_prompt $" {
|
-re "Attaching to program.*`?$escapedbinfile'?, process $testpid.* received signal SIGALRM.*$gdb_prompt $" {
|
||||||
# nonthreaded:
|
# nonthreaded:
|
||||||
pass $test
|
pass $test
|
||||||
verbose -log "$test succeeded on the attempt # $attempt of $attempts"
|
verbose -log "$test succeeded on the attempt # $attempt of $attempts"
|
||||||
|
@ -67,7 +67,7 @@ gdb_test_multiple "continue" $test {
|
|||||||
# Breakpoint has been skipped in the other thread.
|
# Breakpoint has been skipped in the other thread.
|
||||||
pass $test
|
pass $test
|
||||||
}
|
}
|
||||||
-re "Program received signal .*\r\n$gdb_prompt $" {
|
-re " received signal .*\r\n$gdb_prompt $" {
|
||||||
fail $test
|
fail $test
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -94,7 +94,7 @@ for {set i 0} {$i < 5} {incr i} {
|
|||||||
}
|
}
|
||||||
-re "^$gdb_prompt $" {
|
-re "^$gdb_prompt $" {
|
||||||
}
|
}
|
||||||
-re "Program received signal.*(Unknown signal|SIGUSR|Real-time event).*$gdb_prompt $" {
|
-re " received signal.*(Unknown signal|SIGUSR|Real-time event).*$gdb_prompt $" {
|
||||||
# It would be nice if we could catch the message that GDB prints
|
# It would be nice if we could catch the message that GDB prints
|
||||||
# when it first notices that the thread library doesn't support
|
# when it first notices that the thread library doesn't support
|
||||||
# debugging, or if we could explicitly ask GDB somehow.
|
# debugging, or if we could explicitly ask GDB somehow.
|
||||||
|
@ -75,8 +75,8 @@ proc interrupt_and_wait { message } {
|
|||||||
}
|
}
|
||||||
-re "$gdb_prompt $" {
|
-re "$gdb_prompt $" {
|
||||||
# Note that with this regex order, if GDB emits [New
|
# Note that with this regex order, if GDB emits [New
|
||||||
# Thread ...] output between "Program received signal" and
|
# Thread ...] output between "Thread NNN received signal"
|
||||||
# the prompt, the "received signal" regex won't match.
|
# and the prompt, the "received signal" regex won't match.
|
||||||
# That's good, as if we see that happening, it's a
|
# That's good, as if we see that happening, it's a
|
||||||
# regression.
|
# regression.
|
||||||
#
|
#
|
||||||
@ -151,7 +151,7 @@ remote_expect host 1 {
|
|||||||
-re "\\\[\[^\]\]* exited\\\]\r\n" {
|
-re "\\\[\[^\]\]* exited\\\]\r\n" {
|
||||||
exp_continue -continue_timer
|
exp_continue -continue_timer
|
||||||
}
|
}
|
||||||
-re "Program received signal SIGINT.*$gdb_prompt $" {
|
-re " received signal SIGINT.*$gdb_prompt $" {
|
||||||
if { $failed == 0 } {
|
if { $failed == 0 } {
|
||||||
fail "check for duplicate SIGINT"
|
fail "check for duplicate SIGINT"
|
||||||
}
|
}
|
||||||
|
@ -70,7 +70,7 @@ set ok 0
|
|||||||
for {set i 0} {$i < $iterations} {incr i} {
|
for {set i 0} {$i < $iterations} {incr i} {
|
||||||
set ok 0
|
set ok 0
|
||||||
gdb_test_multiple "next" "$test" {
|
gdb_test_multiple "next" "$test" {
|
||||||
-re "Program received signal SIGTRAP.*$gdb_prompt $" {
|
-re " received signal SIGTRAP.*$gdb_prompt $" {
|
||||||
fail "$test (spurious SIGTRAP)"
|
fail "$test (spurious SIGTRAP)"
|
||||||
}
|
}
|
||||||
-re "$gdb_prompt $" {
|
-re "$gdb_prompt $" {
|
||||||
|
@ -72,7 +72,7 @@ proc test_all_threads { name kill } {
|
|||||||
fail "all threads ran once ($name) (total $i threads ran)"
|
fail "all threads ran once ($name) (total $i threads ran)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-re "Program received signal SIGTRAP.*(Thread \[-0-9a-fx\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" {
|
-re " received signal SIGTRAP.*(Thread \[-0-9a-fx\]* \\(zombie\\)|0x00000000 in ).*$gdb_prompt $" {
|
||||||
if { $kill == 1 } {
|
if { $kill == 1 } {
|
||||||
kfail "gdb/1265" "Running threads ($name) (zombie thread)"
|
kfail "gdb/1265" "Running threads ($name) (zombie thread)"
|
||||||
} else {
|
} else {
|
||||||
|
@ -45,7 +45,7 @@ for {set i 0} {$i < 100} {incr i} {
|
|||||||
# Presume this step failed - as in the case of a timeout.
|
# Presume this step failed - as in the case of a timeout.
|
||||||
set failed 1
|
set failed 1
|
||||||
gdb_test_multiple "step" $test {
|
gdb_test_multiple "step" $test {
|
||||||
-re "\r\nProgram received signal SIGUSR1, User defined signal 1.\r\n" {
|
-re " received signal SIGUSR1, User defined signal 1.\r\n" {
|
||||||
exp_continue -continue_timer
|
exp_continue -continue_timer
|
||||||
}
|
}
|
||||||
-re "step-(\[012\]).*\r\n$gdb_prompt $" {
|
-re "step-(\[012\]).*\r\n$gdb_prompt $" {
|
||||||
|
@ -47,7 +47,7 @@ gdb_test_multiple "continue" "$test" {
|
|||||||
-re "Breakpoint .*, .*sem_post .*$gdb_prompt " {
|
-re "Breakpoint .*, .*sem_post .*$gdb_prompt " {
|
||||||
pass "$test"
|
pass "$test"
|
||||||
}
|
}
|
||||||
-re "Program received signal .*$gdb_prompt " {
|
-re " received signal .*$gdb_prompt " {
|
||||||
kfail gdb/1328 "$test"
|
kfail gdb/1328 "$test"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -162,7 +162,7 @@ gdb_test "b [gdb_get_line_number "before exit"]" \
|
|||||||
|
|
||||||
send_gdb "continue\n"
|
send_gdb "continue\n"
|
||||||
gdb_expect {
|
gdb_expect {
|
||||||
-re ".*Program received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" {
|
-re ".* received signal SIGSEGV.*a_thread_local = 0;.*$gdb_prompt $" {
|
||||||
# This is the first symptom if the gcc and binutils versions
|
# This is the first symptom if the gcc and binutils versions
|
||||||
# in use support TLS, but the system glibc does not.
|
# in use support TLS, but the system glibc does not.
|
||||||
unsupported "continue to first thread: system does not support TLS"
|
unsupported "continue to first thread: system does not support TLS"
|
||||||
|
Reference in New Issue
Block a user