From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10256 invoked by alias); 16 Oct 2011 11:56:54 -0000 Received: (qmail 10247 invoked by uid 22791); 16 Oct 2011 11:56:53 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Sun, 16 Oct 2011 11:56:35 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9GBuUMd018322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 16 Oct 2011 07:56:30 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9GBuSlw028251 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Oct 2011 07:56:30 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9GBuRv0016610; Sun, 16 Oct 2011 13:56:27 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9GBuQGo016603; Sun, 16 Oct 2011 13:56:26 +0200 Date: Sun, 16 Oct 2011 16:41:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org, Tom Tromey Subject: Re: FYI: fix 2 tests when glibc debuginfo is installed Message-ID: <20111016115625.GA15749@host1.jankratochvil.net> References: <20111014193705.GA14009@host1.jankratochvil.net> <201110142219.10084.pedro@codesourcery.com> <20111014212510.GA20587@host1.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20111014212510.GA20587@host1.jankratochvil.net> 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: 2011-10/txt/msg00445.txt.bz2 On Fri, 14 Oct 2011 23:25:10 +0200, Jan Kratochvil wrote: > Yes. But I do not think it is problem, one can SIGCONT it safely after > PTRACE_DETACH. Just it may be (T)-stopped for a moment but why not. > > The opposite - the upstream 2.6.x kernel state - was IMO worse, it was resumed > and one could not safely keep it stopped. Without going into detail one can reach both states with new kernels, just the default behavior has changed. sleep 1h&p=$!;sleep 1;kill -STOP $p;sleep 1;grep ^State /proc/$p/status;./gdb -q -batch -p $p -ex q;sleep 1;grep ^State /proc/$p/status;kill -9 $p GNU gdb (GDB) 7.3.50.20111016-cvs kernel-2.6.35.14-96.fc14.x86_64: State: T (stopped) [... - GDB attach+detach] State: S (sleeping) kernel-3.1.0-0.rc6.git0.0.fc17.x86_64 State: T (stopped) [... - GDB attach+detach] State: T (stopped) Regards, Jan