From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cbPlNJn5T2qn1AAAWB0awg (envelope-from ) for ; Thu, 09 Jul 2026 15:42:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1783626137; bh=j1kUIpBJjCZPixwrRxvStzDV/c24rJQyIbu8omHpme4=; h=Date:Subject:To:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=rEJvZD/dABhutGHdbzcg3W9U826uoDKvDEleBlxDeJiK7lymCQHRK2KPbijSBdo1s 5/wlqzsjc9u0zAjZtGwaXMcwJZvy3edN+RGEtNzcfDZBZd57IZfjGFbb7Hj0O5JeRd o8VNTemYVfgYtMF6sA8PVon2BvUdxQspIETfI+ws= Received: by simark.ca (Postfix, from userid 112) id CC51F1E070; Thu, 09 Jul 2026 15:42:17 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=r968OYSs; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2015E1E070 for ; Thu, 09 Jul 2026 15:42:17 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AC4A64BA23D2 for ; Thu, 9 Jul 2026 19:42:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC4A64BA23D2 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=r968OYSs Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 2DA6C4BA5439 for ; Thu, 9 Jul 2026 19:41:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2DA6C4BA5439 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2DA6C4BA5439 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783626115; cv=none; b=oqX78/bAKMo2ZFLg+GClRLStwAWftHPkRB3E5aPvUcrdlBLxlP9VVu5ym+PCi2A13icXIQ0cyeDhVaH74InCm3BiWgctfNmJ3Q1dEtbuqTNe35YNBqGFuyUdiXfkN88fqaC6slSJ9Ta993Q8+nbxRBZJ9FvuZcVEA5271FLUiAY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783626115; c=relaxed/simple; bh=j1kUIpBJjCZPixwrRxvStzDV/c24rJQyIbu8omHpme4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=VYqS8w1q2THK8ChogQxCkgsAijWuR/alGjZZoaW0ZENlaULLB61hx66a7Z9x5UbE0DWQn6Qz+leRIU8E/5M4j6B10sy50ysTLF+M0hsglJlKx0xk1KVOjDi2ifXS46w/E+uE96jhGWe9TUYiecCn0ZU5zNEEqzI3phFdyXcd2Ls= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=r968OYSs DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2DA6C4BA5439 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1783626113; bh=j1kUIpBJjCZPixwrRxvStzDV/c24rJQyIbu8omHpme4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=r968OYSs2mBKuwidJ1+L9go0G45xvN/+GIcusH6haiPIfEu/hCYDDdLtos+z0CoD3 hNr+PwoWXHD2WhmGlkvpLq9y71mmCI+s+ac2fHV0rG6cs1EM/wfMEHC81E4HBbVtj+ YW5Xt4+kul1o7aLriQ1PhbwMTHyRyrUdE6Nv+RXU= Received: by simark.ca (Postfix) id 2600F1E070; Thu, 09 Jul 2026 15:41:53 -0400 (EDT) Message-ID: <049a3324-c5ab-466c-8168-41a77f216b99@simark.ca> Date: Thu, 9 Jul 2026 15:41:52 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb.base/execl-update-breakpoints.exp: Don't execl forever To: Pedro Alves , gdb-patches@sourceware.org References: <20260709175804.434105-1-pedro@palves.net> <9043916e-cf6c-4e37-ba48-b59f8b7db081@simark.ca> <056e0d75-8449-4188-a7fb-9896f70a606c@palves.net> Content-Language: en-US From: Simon Marchi In-Reply-To: <056e0d75-8449-4188-a7fb-9896f70a606c@palves.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org On 2026-07-09 14:52, Pedro Alves wrote: > On 2026-07-09 19:14, Simon Marchi wrote: > >> So the goal is just to have one exec and then exit? Could we just pass >> a regular argument (argv[1]) instead of tweaking argv[0]? Like the >> process could be launched without argument at first, and then it execs >> itself with an argument, and just the presence of that argument would be >> a flag to say "don't re-exec, just exit". > > It's not about the exec event, it has to be two separate programs: > > # Build two copies of the program, each linked at a different address. > # The address of "main" in the first binary should end up being an > # unmapped address in the second binary. Ah ok I see, same source but two executables. LGTM then. Approved-By: Simon Marchi Simon