From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20001 invoked by alias); 15 Dec 2011 08:48:00 -0000 Received: (qmail 19988 invoked by uid 22791); 15 Dec 2011 08:47:59 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 15 Dec 2011 08:47:46 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1Rb6ye-0006CY-8R from pedro_alves@mentor.com ; Thu, 15 Dec 2011 00:47:44 -0800 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 15 Dec 2011 08:47:42 +0000 From: Pedro Alves To: Jan Kratochvil Subject: Re: Regression for T (Stopped) processes [Re: [PATCH] PR threads/10729: x86 hw watchpoints and non-stop mode] Date: Thu, 15 Dec 2011 12:44:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-13-generic; KDE/4.7.2; x86_64; ; ) Cc: gdb-patches@sourceware.org References: <201112051601.59664.pedro@codesourcery.com> <201112141734.43226.pedro@codesourcery.com> <20111215062013.GA13506@host2.jankratochvil.net> In-Reply-To: <20111215062013.GA13506@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201112150847.37219.pedro@codesourcery.com> 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/msg00498.txt.bz2 On Thursday 15 December 2011 06:20:13, Jan Kratochvil wrote: > 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. I'm confused. Why does it run for a bit now? prepare_to_resume should not, and AFAICS, does not, actually resume. > > This is a regression. Some users really insist the T (Stopped) inferior state > absolutely does not change. > > > Thanks, > Jan > -- Pedro Alves