]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.threads/attach-into-signal.exp
Drop /proc/PID/status polling from gdb.threads/attach-into-signal.exp
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.threads / attach-into-signal.exp
index 75024790b81e9e939ab88a55b3173707b4deae2f..ab80e82e16a21a38eed3bd1f686e74e52cd7c514 100644 (file)
@@ -56,33 +56,6 @@ proc corefunc { threadtype executable } {
        set attempt 1
        set passes 1
        while { $passes < 3 && $attempt <= $attempts } {
-               set stoppedtry 0
-               while { $stoppedtry < 10 } {
-                   with_test_prefix "stoppedtry $stoppedtry" {
-                       if [catch {open /proc/${testpid}/status r} fileid] {
-                           set stoppedtry 10
-                           break
-                       }
-                       gets $fileid line1
-                       gets $fileid line2
-                       close $fileid
-
-                       if {![string match "*(stopped)*" $line2]} {
-                           # No PASS message as we may be looping in multiple
-                           # attempts.
-                           break
-                       }
-                       sleep 1
-                       set stoppedtry [expr $stoppedtry + 1]
-                   }
-               }
-               if { $stoppedtry >= 10 } {
-                   verbose -log $line2
-                   set test "process is still running on the attempt # $attempt of $attempts"
-                   break
-               }
-
-               # Main test:
                set test "attach (pass $passes), pending signal catch"
                if {[gdb_test_multiple "attach $testpid" $test {
                    -re "Attaching to program.*`?$escapedbinfile'?, process $testpid.* received signal SIGALRM.*$gdb_prompt $" {