From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11817 invoked by alias); 26 Mar 2004 21:19:59 -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 11793 invoked from network); 26 Mar 2004 21:19:58 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 26 Mar 2004 21:19:58 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1B6ykA-0008GO-DO for ; Fri, 26 Mar 2004 16:19:58 -0500 Date: Fri, 26 Mar 2004 21:19:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [patch] New thread test to exercise Daniel's Patch Message-ID: <20040326211958.GA31610@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <20040324155130.GA27748@nevyn.them.org> <20040324165625.GA10256@nevyn.them.org> <4062041F.1010302@redhat.com> <40622BEF.8030403@redhat.com> <20040325043950.GA13188@nevyn.them.org> <20040325163437.GA15238@nevyn.them.org> <40633F75.5010908@redhat.com> <20040326175906.GA21136@nevyn.them.org> <406472FB.4010905@redhat.com> <40649CEE.4070607@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40649CEE.4070607@redhat.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-03/txt/msg00686.txt.bz2 On Fri, Mar 26, 2004 at 04:13:18PM -0500, Jeff Johnston wrote: > See the attached test. There was some stuff in pthreads.exp about Crtl-C > and alpha-*-osf*. Do I need to account for this platform? Well, it's still supported, but I have no idea whether the bit in that test is necessary - or what it's supposed to accomplish. So let's ignore it. > +# This only works with native configurations > +if ![isnative] then { > + return > +} This shouldn't be necessary. > +set testfile "manythreads" > +set srcfile ${testfile}.c > +set binfile ${objdir}/${subdir}/${testfile} > +if {[gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug libs=-lpthread}] != ""} { See gdb_compile_pthreads. > +send_gdb "set print sevenbit-strings\n" ; gdb_expect -re "$gdb_prompt $" gdb_test "set print sevenbit-strings" "" > +send_gdb "continue\n" > +gdb_expect { Everywhere you're using gdb_expect, please use gdb_test_multiple instead. For the "after" tests, you can use gdb_test_multiple with "" as the first argument. > +# Send a Ctrl-C and verify that we can do info threads and continue > +after 100 {send_gdb "\003"} Is 100 ms enough to be interesting? -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer