From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id cYDHECruT2qkzAAAWB0awg (envelope-from ) for ; Thu, 09 Jul 2026 14:53:30 -0400 Received: by simark.ca (Postfix, from userid 112) id 41D991E0A3; Thu, 09 Jul 2026 14:53:30 -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.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable autolearn_force=no version=4.0.1 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 763A41E070 for ; Thu, 09 Jul 2026 14:53:28 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4686E4BA23D6 for ; Thu, 9 Jul 2026 18:53:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4686E4BA23D6 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by sourceware.org (Postfix) with ESMTPS id 3A13E4BA2E09 for ; Thu, 9 Jul 2026 18:53:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3A13E4BA2E09 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3A13E4BA2E09 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783623183; cv=none; b=kTYgasvotXRXQfp43fhk/vfK1+GbY9h7aeGu9Jgf84rlnn1IWnoQYzJhaBzSYXWV3lXqyWx0PyGgJnq4lYeVUIHYrbKqwQCEo7CBAhSjJJHkQmssPUuxMIWzMKd2fLeDq8uPfrR5obQXFTYO27fvTeTEBuf74M3eUfQLtU0Va2k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783623183; c=relaxed/simple; bh=tntypwFR1dAnurc79LbjwPbK+Va8zZrccyTLSXuAA5s=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=qdxQbQGACxwkUzNsiOdCv01D76x72lQ8wnwDDwRn/eeT2vDUTTcw/m2vCIDdDJAE2kPH2s1PgLf6orAQ9xd3zr4zk24N2cpBeQClfavyjewpo/8liw/UGcku8APom+eIdkIc2rMoPDIwhGuySM4mFUxyt4GXf7KYuWyLrrOkEv4= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3A13E4BA2E09 Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-475cb71a4ebso188576f8f.0 for ; Thu, 09 Jul 2026 11:53:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783623182; x=1784227982; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Te1n1rmZsyFkBJBw1/q+uXS2S55YiPes6DWE8nIA3ok=; b=X8yNU+odbRK0jvwzpL8IL2eG8U26gHySAHjogV8QU70Kr/IY17rLEV4HILgP+IRaFZ A7262S1M7lEaQrxImduF+B0hUJlmKpM6xJEyEIqSIqceeY2iVxwsQYZDgXFGJGPIcXd1 gtdNx0s35j6nhCpM2/UCtsgaR3yTONS9pBl8/9Nt8pkJ4p2zXHDA87Oh6+3vWhXvl5qD 1nWHcpx/bRDRytSJyj1Tg10k+uKQ4rnwm8Wm6aBQVfR/1GoIIoOK/6B/hSZ11ovKBhA+ V8EJeaWN1A+tU6Ov+50iRCjnoAFmgcjz4dzMUT81yqI9TXogelPhXj19rvDbbwpIKu8y DrGQ== X-Forwarded-Encrypted: i=1; AHgh+RpMRqGBpPKP2PPRzuwzXBo+ghxaIuIqZGBJwik+OF/YQ3nm8VELYJa6tkxI9/q9K/k4cW4zHLCUCuTwKA==@sourceware.org X-Gm-Message-State: AOJu0Yw8f4loc433tk5ZvWghLbHpGPib1ztHs6nQ0u9+tL+HW+QW2l2a zEl2AVAr10mJxkOaMVQKGPwpc0OjH4JSdrtVrOfurNdbHJ//zWBgwC5d X-Gm-Gg: AfdE7cnSKA09T0Z8miVccAuUm+xmhgBFtzv0YyAiil7rHCEoKD4B9QlaRUI9cND1oWJ EwlriRAk3uQbD+aiP1eYLmPkjZr/ZNZiEIN9ufBZAWHlpvRvdDQ5Pe/eZNC9OuL7MfUOEMDE5Ik fiURHEUipoxVn6jfZt+yvdHVkIz3wvTLGSNML4wjCE6MKEl1ojohGEPNh2JBy0z8XueDC3O151L AeEYKcasmVm26GDyT2Hak50Xl9pN57i4+HOZIYwPWPwrIVPyY+gFR0r74DhVlU8sYHvBevcHAAp flO6AFvRRrQVpfzoOM8yzBiZ5H9l4eBzfqtjp8WPCCgLbiVmBMYWcPKuN7QWUxxyg+4KnyyJo9r btvQxAUFqwrL3fjZiRP5zW4SLwJgzqOdwUnGUEfq9fInaTZQJBnpHjDyp5DwsU+i54+Yjdv8O/r hEn5cy0fnVShqUI+NY54337AeQ/WGSpZTabwyu8OkDDB6z0R/DJCDU X-Received: by 2002:a05:6000:26cd:b0:46f:f12b:e456 with SMTP id ffacd0b85a97d-47df075b35cmr9089588f8f.25.1783623181834; Thu, 09 Jul 2026 11:53:01 -0700 (PDT) Received: from ?IPV6:2001:8a0:fae3:3700:fc87:ea6:fb9f:13e3? ([2001:8a0:fae3:3700:fc87:ea6:fb9f:13e3]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-47aa0f214d2sm52127541f8f.33.2026.07.09.11.53.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2026 11:53:01 -0700 (PDT) Message-ID: <056e0d75-8449-4188-a7fb-9896f70a606c@palves.net> Date: Thu, 9 Jul 2026 19:52:59 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb.base/execl-update-breakpoints.exp: Don't execl forever To: Simon Marchi , gdb-patches@sourceware.org References: <20260709175804.434105-1-pedro@palves.net> <9043916e-cf6c-4e37-ba48-b59f8b7db081@simark.ca> From: Pedro Alves Content-Language: en-US In-Reply-To: <9043916e-cf6c-4e37-ba48-b59f8b7db081@simark.ca> 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 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.