From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93714 invoked by alias); 20 Nov 2015 16:50:11 -0000 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 Received: (qmail 93698 invoked by uid 89); 20 Nov 2015 16:50:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.2 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Nov 2015 16:50:09 +0000 Received: from svr-orw-fem-06.mgc.mentorg.com ([147.34.97.120]) by relay1.mentorg.com with esmtp id 1Zzosv-0000MQ-Nk from Don_Breazeal@mentor.com ; Fri, 20 Nov 2015 08:50:05 -0800 Received: from [172.30.2.227] (147.34.91.1) by svr-orw-fem-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server (TLS) id 14.3.224.2; Fri, 20 Nov 2015 08:50:05 -0800 Subject: Re: [PATCH 1/3] Target remote mode fork and exec events To: Pedro Alves , "gdb-patches@sourceware.org" References: <1446854188-496-1-git-send-email-donb@codesourcery.com> <1446854188-496-2-git-send-email-donb@codesourcery.com> <564F1A6A.3030301@redhat.com> From: Don Breazeal Message-ID: <564F4F33.4030906@codesourcery.com> Date: Fri, 20 Nov 2015 16:50:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <564F1A6A.3030301@redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00438.txt.bz2 On 11/20/2015 5:04 AM, Pedro Alves wrote: > Hi Don, > > Thanks for doing this. Starting to look at the series. Thanks! > > On 11/06/2015 11:56 PM, Don Breazeal wrote: >> This patch implements support for fork and exec events with target remote >> mode Linux targets. For such targets with Linux kernels 2.5.46 and later, >> this enables follow-fork-mode, detach-on-fork and fork and exec >> catchpoints. > >> Note that follow-exec-mode is not supported, because target >> remote mode does not support the 'run' command. > > Not sure I don't understand this part/comment. I assume that we agree that the 'run' command is not supported in target remote mode. Maybe a better way to have stated this would be that follow-exec-mode is of limited used in target remote mode, since the 'run' command is not supported. The point being that the main reason a user would want to set follow-exec-mode would be to get control over which inferior is run when a 'run' command is executed. I have to admit that it is incorrect to say that it is unsupported, since setting follow-exec-mode *will* control whether a new inferior or the same inferior is used for the execed program. But there isn't much you can do differently without the 'run' command. Using follow-exec-mode 'new' there *is* a record of what programs have been run, which could be useful. Is that a more accurate description, or am I misunderstanding something? I'll get to work on the rest of this, hopefully sometime next week. thanks --Don