From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1101 invoked by alias); 7 May 2004 12:46:51 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 1093 invoked from network); 7 May 2004 12:46:49 -0000 Received: from unknown (HELO mclean.mail.mindspring.net) (207.69.200.57) by sources.redhat.com with SMTP; 7 May 2004 12:46:49 -0000 Received: from user-119a90a.biz.mindspring.com ([66.149.36.10] helo=berman.michael-chastain.com) by mclean.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1BM4kJ-0007hZ-00; Fri, 07 May 2004 08:46:32 -0400 Received: by berman.michael-chastain.com (Postfix, from userid 502) id 6DB474B104; Fri, 7 May 2004 08:46:25 -0400 (EDT) To: msnyder@redhat.com Subject: Re: [rfa/testsuite/threads] manythreads.exp: cancel outstanding after-blocks Cc: drow@mvista.com, gdb-patches@sources.redhat.com, jjohnstn@redhat.com Message-Id: <20040507124625.6DB474B104@berman.michael-chastain.com> Date: Fri, 07 May 2004 12:46:00 -0000 From: mec.gnu@mindspring.com (Michael Elizabeth Chastain) X-SW-Source: 2004-05/txt/msg00189.txt.bz2 Daniel Jacobowitz writes: > That's a nice trick, I didn't know it. But it's simpler to just make > the stop synchronous... would you mind trying that instead? Sure, I can do it that synchronously. This fixes the problems with print-threads.exp the same way. I get more frequent gdb internal errors when running this test with a synchronous sleep, but that's good for a test script. Tested again on native i686-pc-linux-gnu, red hat 8.0, group of 12 test runs before and after. OK to commit? Michael C 2004-05-07 Michael Chastain Fix PR gdb/1636. * gdb.threads/manythreads.exp: Change asynchronous 'after' calls to synchronous. Index: gdb.threads/manythreads.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/manythreads.exp,v retrieving revision 1.1 diff -c -3 -p -r1.1 manythreads.exp *** gdb.threads/manythreads.exp 22 Apr 2004 22:19:40 -0000 1.1 --- gdb.threads/manythreads.exp 7 May 2004 12:41:39 -0000 *************** gdb_test_multiple "continue" "first cont *** 60,66 **** } # Send a Ctrl-C and verify that we can do info threads and continue ! after 1000 {send_gdb "\003"} set message "stop threads 1" gdb_test_multiple "" "stop threads 1" { -re "\\\[New \[^\]\]*\\\]\r\n" { --- 60,67 ---- } # Send a Ctrl-C and verify that we can do info threads and continue ! after 1000 ! send_gdb "\003" set message "stop threads 1" gdb_test_multiple "" "stop threads 1" { -re "\\\[New \[^\]\]*\\\]\r\n" { *************** gdb_test_multiple "continue" "second con *** 93,99 **** } # Send another Ctrl-C and verify that we can do info threads and quit ! after 1000 {send_gdb "\003"} set message "stop threads 2" gdb_test_multiple "" "stop threads 2" { -re "\\\[New \[^\]\]*\\\]\r\n" { --- 94,101 ---- } # Send another Ctrl-C and verify that we can do info threads and quit ! after 1000 ! send_gdb "\003" set message "stop threads 2" gdb_test_multiple "" "stop threads 2" { -re "\\\[New \[^\]\]*\\\]\r\n" {