From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17126 invoked by alias); 20 Feb 2012 12:26:26 -0000 Received: (qmail 17094 invoked by uid 22791); 20 Feb 2012 12:26:24 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 20 Feb 2012 12:25:35 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1KCPYc7010845 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Feb 2012 07:25:34 -0500 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q1KCPW3l008221; Mon, 20 Feb 2012 07:25:33 -0500 Message-ID: <4F423BBC.10007@redhat.com> Date: Mon, 20 Feb 2012 12:32:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: Jan Kratochvil CC: gdb-patches@sourceware.org Subject: Re: [PATCH 2/2] gdb.threads/attach-into-signal.exp: don't rely on linux native target's internal debug output References: <20120217193546.10029.74207.stgit@hit-nxdomain.opendns.com> <20120217193750.10029.58857.stgit@hit-nxdomain.opendns.com> <20120220085704.GA4966@host2.jankratochvil.net> In-Reply-To: <20120220085704.GA4966@host2.jankratochvil.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00400.txt.bz2 On 02/20/2012 08:57 AM, Jan Kratochvil wrote: > On Fri, 17 Feb 2012 20:37:50 +0100, Pedro Alves wrote: >> > We can't use this method for the non-threaded case too, because the Linux >> > native target when attaching finds another signal other than SIGSTOP, puts >> > that other signal pending, and waits for the SIGSTOP, so siginfo.si_signo >> > will always show SIGSTOP. > It works with this patch from Fedora but it is not yet upstreamed: > ping: [patch 3/4]#3 linux-nat: Do not respawn signals > http://sourceware.org/ml/gdb-patches/2011-05/msg00407.html Yeah. We can revisit/simplify the test once that's in. >> > Jan, is this okay with you? > Yes. Great. > > >> > + set test2 "pull thread list" >> > + gdb_test_multiple "info threads" $test2 { >> > + -re "\r\n$gdb_prompt $" { >> > + } >> > + } > This can be just: > gdb_test "info threads" ".*" "pull thread list" I avoided that on purpose, because that'd generate a PASS for every attempt/iteration at trying to catch the signal. > Still this is a bug of extended gdbserver mode. Yeah, it could be considered a bug. Not only of extended gdbserver tough. It happens with all remote targets, and we have similar things in other tests. One thing at a time though, otherwise, I'll never be done. :-) Thanks! -- Pedro Alves