From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20070 invoked by alias); 15 Dec 2011 06:20:40 -0000 Received: (qmail 20053 invoked by uid 22791); 15 Dec 2011 06:20:37 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,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; Thu, 15 Dec 2011 06:20:22 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBF6KIJg011076 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Dec 2011 01:20:19 -0500 Received: from host2.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pBF6KEWJ014211 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 15 Dec 2011 01:20:17 -0500 Date: Thu, 15 Dec 2011 08:48:00 -0000 From: Jan Kratochvil To: Pedro Alves Cc: gdb-patches@sourceware.org Subject: Regression for T (Stopped) processes [Re: [PATCH] PR threads/10729: x86 hw watchpoints and non-stop mode] Message-ID: <20111215062013.GA13506@host2.jankratochvil.net> References: <201112051601.59664.pedro@codesourcery.com> <20111213184923.GA27244@host2.jankratochvil.net> <201112141722.27572.pedro@codesourcery.com> <201112141734.43226.pedro@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201112141734.43226.pedro@codesourcery.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: 2011-12/txt/msg00497.txt.bz2 On Wed, 14 Dec 2011 18:34:43 +0100, Pedro Alves wrote: > --- a/gdb/gdbserver/linux-low.c > +++ b/gdb/gdbserver/linux-low.c > @@ -918,6 +918,8 @@ linux_detach_one_lwp (struct inferior_list_entry *entry, void *args) > get_lwp_thread (lwp)); > > /* Finally, let it resume. */ > + if (the_low_target.prepare_to_resume != NULL) > + the_low_target.prepare_to_resume (lwp); > ptrace (PTRACE_DETACH, lwpid_of (lwp), 0, 0); > > delete_lwp (lwp); If you have T (Stopped) process on Linux kernel 3.1+, you do attach, bt/gcore/etc., detach, the state of the process must not change. But the process will now run for a bit. This is a regression. Some users really insist the T (Stopped) inferior state absolutely does not change. Thanks, Jan