From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27078 invoked by alias); 28 Mar 2005 00:00:25 -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 27022 invoked from network); 28 Mar 2005 00:00:16 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 28 Mar 2005 00:00:16 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DFhgp-0000dP-Or; Sun, 27 Mar 2005 19:01:07 -0500 Date: Mon, 28 Mar 2005 00:00:00 -0000 From: Daniel Jacobowitz To: Randolph Chung Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfa] Don't assume SIG32 in staticthreads.exp Message-ID: <20050328000107.GA2007@nevyn.them.org> Mail-Followup-To: Randolph Chung , gdb-patches@sources.redhat.com References: <20041123224637.GU9148@tausq.org> <20041201065740.GA6359@tausq.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041201065740.GA6359@tausq.org> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00364.txt.bz2 On Tue, Nov 30, 2004 at 10:57:40PM -0800, Randolph Chung wrote: > ping? This patch is fine. Sorry about the delay. > > In reference to a message from Randolph Chung, dated Nov 23: > > SIGRTMIN is 37 on hppa-linux and hpux, instead of 32, which was assumed > > by this test. > > > > also depending on the version of libc, etc, "sem_post" may have a > > different internal symbolic name. for example on my test setup it shows > > up as "__new_sem_post". This seems to be reasonable, so i've relaxed the > > name checking slightly. > > > > Tested on hppa-linux. ok to apply? > > > > randolph > > > > > > 2004-11-23 Randolph Chung > > > > testsuite/ > > > > * gdb.threads/staticthreads.exp: Override signal to check for hppa. > > Slightly relex "sem_post" name checking. > > > > > > Index: testsuite/gdb.threads/staticthreads.exp > > =================================================================== > > RCS file: /cvs/src/src/gdb/testsuite/gdb.threads/staticthreads.exp,v > > retrieving revision 1.1 > > diff -u -p -r1.1 staticthreads.exp > > --- testsuite/gdb.threads/staticthreads.exp 1 Sep 2004 18:02:45 -0000 1.1 > > +++ testsuite/gdb.threads/staticthreads.exp 23 Nov 2004 22:42:11 -0000 > > @@ -62,10 +62,17 @@ gdb_test_multiple "continue" "$test" { > > # See if handle SIG32 helps (a little) with a static multi-threaded > > # program. > > > > +set sig "SIG32" > > + > > +# SIGRTMIN is 37 on hppa-linux and hpux > > +if [istarget hppa*-*-*] { > > + set sig "SIG37" > > +} > > + > > rerun_to_main > > -gdb_test "handle SIG32 nostop noprint pass" > > -set test "Handle SIG32 helps" > > -gdb_test "continue" " sem_post .*" "handle SIG32 helps" > > +gdb_test "handle $sig nostop noprint pass" > > +set test "Handle $sig helps" > > +gdb_test "continue" " .*sem_post .*" "handle $sig helps" > > > > > > # See if info threads produces anything approaching a thread list. > > -- > > Randolph Chung > > Debian GNU/Linux Developer, hppa/ia64 ports > > http://www.tausq.org/ > -- > Randolph Chung > Debian GNU/Linux Developer, hppa/ia64 ports > http://www.tausq.org/ > -- Daniel Jacobowitz CodeSourcery, LLC