From owner-freebsd-current@FreeBSD.ORG Fri Feb 10 01:55:46 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C06EC106566B for ; Fri, 10 Feb 2012 01:55:46 +0000 (UTC) (envelope-from dmitrym@juniper.net) Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mx1.freebsd.org (Postfix) with ESMTP id 571B08FC0C for ; Fri, 10 Feb 2012 01:55:46 +0000 (UTC) Received: from P-EMHUB01-HQ.jnpr.net ([66.129.224.36]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKTzR5IKxJF9RrViHCcJiJNpdKYlD2gRd7@postini.com; Thu, 09 Feb 2012 17:55:46 PST Received: from magenta.juniper.net (172.17.27.123) by P-EMHUB01-HQ.jnpr.net (172.24.192.33) with Microsoft SMTP Server (TLS) id 8.3.213.0; Thu, 9 Feb 2012 17:53:58 -0800 Received: from [172.24.26.191] (dmitrym-lnx.jnpr.net [172.24.26.191]) by magenta.juniper.net (8.11.3/8.11.3) with ESMTP id q1A1rv143581; Thu, 9 Feb 2012 17:53:57 -0800 (PST) (envelope-from dmitrym@juniper.net) Message-ID: <4F3478B3.9040809@juniper.net> Date: Thu, 9 Feb 2012 17:53:55 -0800 From: Dmitry Mikulin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 MIME-Version: 1.0 To: Konstantin Belousov References: <20120130192727.GZ2726@deviant.kiev.zoral.com.ua> <4F2C756A.80900@juniper.net> <20120204204218.GC3283@deviant.kiev.zoral.com.ua> <4F3043E2.6090607@juniper.net> <20120207121022.GC3283@deviant.kiev.zoral.com.ua> <4F318D74.9030506@juniper.net> <4F31C89C.7010705@juniper.net> <4F3318AD.6000607@juniper.net> <20120209122908.GD3283@deviant.kiev.zoral.com.ua> <4F34311A.9050702@juniper.net> <20120210001725.GJ3283@deviant.kiev.zoral.com.ua> In-Reply-To: <20120210001725.GJ3283@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: f8e27f27-03b2-4c3e-9447-119194e72cb6 X-Mailman-Approved-At: Fri, 10 Feb 2012 02:02:06 +0000 Cc: freebsd-current Current , Marcel Moolenaar Subject: Re: [ptrace] please review follow fork/exec changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Feb 2012 01:55:46 -0000 On 02/09/2012 04:17 PM, Konstantin Belousov wrote: > On Thu, Feb 09, 2012 at 12:48:26PM -0800, Dmitry Mikulin wrote: >>> The semantic of PL_FLAG_EXEC up until now is very simple: it indicates >>> that current stop occured during the first return to usermode after >>> successful exec. The proposed patch breaks the semantic, because now >>> some stops which satisfy the stated condition are no longer marked with >>> the flag. >>> >>> That said, I am lost. You stated that you still need some stops at >>> exec even when not PT_FOLLOW_EXEC is requested. Why usermode cannot >>> remember whether the PT_FOLLOW_EXEC was set for the process, and ignore >>> PL_FLAG_EXEC if not requested ? >> I was trying to avoid making ugly changes in gdb if it was possible not to >> make ugly changes in the kernel. I changed gdb to work without >> PT_FOLLOW_EXEC. > So, does the patch below helps you, or did I missed something again ? It works, but I managed to make gdb work without it. So, PT_FOLLOW_EXEC is not needed now. Sorry for the confusion.