From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16947 invoked by alias); 8 Aug 2019 14:05:37 -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 16936 invoked by uid 89); 8 Aug 2019 14:05:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=ulrich, Ulrich, H*UA:2.5, H*F:U*uweigand X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 08 Aug 2019 14:05:35 +0000 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x78DloaB048108 for ; Thu, 8 Aug 2019 10:05:33 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2u8mqu9fwm-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 08 Aug 2019 10:05:33 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 8 Aug 2019 15:05:31 +0100 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 8 Aug 2019 15:05:28 +0100 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x78E5QJc39846258 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 8 Aug 2019 14:05:26 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 838D1AE045; Thu, 8 Aug 2019 14:05:26 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7256CAE055; Thu, 8 Aug 2019 14:05:26 +0000 (GMT) Received: from oc3748833570.ibm.com (unknown [9.152.214.225]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 8 Aug 2019 14:05:26 +0000 (GMT) Received: by oc3748833570.ibm.com (Postfix, from userid 1000) id 399D3D802EF; Thu, 8 Aug 2019 16:05:26 +0200 (CEST) Subject: Re: [PATCH 1/3] Add low_new_clone method to linux_nat_target. To: pedromfc@linux.ibm.com (Pedro Franco de Carvalho) Date: Thu, 08 Aug 2019 14:05:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <20190726125012.6503-2-pedromfc@linux.ibm.com> from "Pedro Franco de Carvalho" at Jul 26, 2019 09:50:10 AM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit x-cbid: 19080814-0020-0000-0000-0000035D4990 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19080814-0021-0000-0000-000021B24CD9 Message-Id: <20190808140526.399D3D802EF@oc3748833570.ibm.com> X-SW-Source: 2019-08/txt/msg00199.txt.bz2 Pedro Franco de Carvalho wrote: > This patch adds a low_new_clone method to linux_nat_target, called after > a PTRACE_EVENT_CLONE is detected, similar to how low_new_fork is called > after PTRACE_EVENT_(V)FORK. > > This is useful for targets that need to copy state associated with a > thread that is inherited across clones. > > gdb/ChangeLog: > YYYY-MM-DD Pedro Franco de Carvalho > > * linux-nat.h (low_new_clone): New method. > * linux-nat.c (linux_handle_extended_wait): Call low_new_clone. Other targets seem to handle this in the linux_nat_target::low_new_thread method, which is already called from linux_handle_extended_wait (via the add_lwp routine) under those same conditions. Why does this not work for Power? Bye, Ulrich -- Dr. Ulrich Weigand GNU/Linux compilers and toolchain Ulrich.Weigand@de.ibm.com