From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2243 invoked by alias); 20 Feb 2012 08:57:23 -0000 Received: (qmail 2233 invoked by uid 22791); 20 Feb 2012 08:57:23 -0000 X-SWARE-Spam-Status: No, hits=-6.6 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 08:57:09 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q1K8v8sD018813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 20 Feb 2012 03:57:08 -0500 Received: from host2.jankratochvil.net (ovpn-116-21.ams2.redhat.com [10.36.116.21]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q1K8v4JE017401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 20 Feb 2012 03:57:07 -0500 Date: Mon, 20 Feb 2012 09:41:00 -0000 From: Jan Kratochvil To: Pedro Alves 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 Message-ID: <20120220085704.GA4966@host2.jankratochvil.net> References: <20120217193546.10029.74207.stgit@hit-nxdomain.opendns.com> <20120217193750.10029.58857.stgit@hit-nxdomain.opendns.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120217193750.10029.58857.stgit@hit-nxdomain.opendns.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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/msg00396.txt.bz2 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 > Jan, is this okay with you? Yes. > + 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" Still this is a bug of extended gdbserver mode. Thanks, Jan