From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dCRUGixd6mi/mikAWB0awg (envelope-from ) for ; Sat, 11 Oct 2025 09:35:40 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=StHvbouu; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5B2191E0B6; Sat, 11 Oct 2025 09:35:40 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 6F66F1E047 for ; Sat, 11 Oct 2025 09:35:39 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0DE933857839 for ; Sat, 11 Oct 2025 13:35:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0DE933857839 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=StHvbouu Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 1CE0D3857C6C for ; Sat, 11 Oct 2025 13:34:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1CE0D3857C6C Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1CE0D3857C6C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760189656; cv=none; b=RdZjx/Bj9dt62WUpqlEAJF6lRj+579qHLtUaJxlbdpJdPfM6bAdbb8MNR53XNY6lNmOXtvOjr+QTGObA3AaRwac+L9n84wSh2Vyrnyr4fFgjY94RVyTvlgrvdmMN9uI0hVO2Fvu/wgxICZhCjBGe7dTuMzTCFY7+/egZBdw2Ne0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1760189656; c=relaxed/simple; bh=j+ycqOblbOEbXAN0ULShHv6LKPvH8ZtPf720uluPtRw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=wr4CShKyrpwjJi7cs37fxUApItckDPWpDO/QwfRTxmGkClUspiGThJzl4HYr9YdwCux7BFbVO/8Cr4+Z4PtW0iG28Wh6XAvIcystYWLZEbzrBEYg7aMXFK9XuNVtPltz9Qstxx4B0lU7+E9brWNbCxqQv+w1CyRJ1/ZAiNFSJuw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1CE0D3857C6C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1760189655; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+/G2HDmQ4vQxNik+NAKU6NURRAUG3hJYtC81QakDm3g=; b=StHvbouuSxwIhTqwQtoYGTA5FLkZrh/xkWzLAxCS1H/fUBo0YeOALPvaf4Cy3uA6tOSzoY 1lNUnToCBp1cB6oDmVL+Mp1UbI9o5XIR56L4tkRKX8CwUy3fkV+aWP3IGY8ZEfefYZwM1+ I2HQ1UPWxrxmnXP2GyciBdiO1HTTy0U= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-516-C5KarS3dMpCeARLyGiPn8w-1; Sat, 11 Oct 2025 09:34:14 -0400 X-MC-Unique: C5KarS3dMpCeARLyGiPn8w-1 X-Mimecast-MFC-AGG-ID: C5KarS3dMpCeARLyGiPn8w_1760189653 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-46e3d43bbc7so16273485e9.2 for ; Sat, 11 Oct 2025 06:34:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760189653; x=1760794453; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+/G2HDmQ4vQxNik+NAKU6NURRAUG3hJYtC81QakDm3g=; b=DenIBYK/Byy2cnrmErzWl7OGoXTFSQfSjuUIHZDCNRHp3LqP+SlB7z93xXxihJRJ9J C0ppkoGPPUveZdYEwm0h7qDdcSJurSKElpdLemc1MiwAJ5q3UPURGqElEClziE+yc5zI pLhuAjTNP/M7EPMHA6EWrEbrssd98Va+1cRmatjv/5VC+KfvhkYz+gDKoWrMGY+cy9c4 8AcoFPAgz1oQ3PfPfTNR2cepjbkabZH6RadOHouUg155UVWkQSoRsyvMo5WAcfYN8Mtj qF6tdeGqLTs9X9xmxdhCQRxNPKgP78YwZGWzpTB6nWH+CHB/ptURjpmgWjlAx5KD5Bae UZdA== X-Gm-Message-State: AOJu0YwA3V2LyL5bTcqmkQqZjvtbk0nA9XI0IuGCrIMOD/m9UFmMMpaJ WJhn/Ubu924irNnBn+oMz2R+J57GaYEyvWB0c2k8YDcEHD3BzSyoUOUDs5+s/Ye0sAm0DVNE/K0 +VA/4cMhFvCzp5nlsvbhQ35r9C0+52uZH9xT3ifMleDqYRbd4DncLahTx4NYcYUQ2S0WvMc3TBc /izMPQv7NCzGE+sjnpRnwOdEoNJpq16IUR3exZ4mhXa7ndzyM= X-Gm-Gg: ASbGncss4exubyU/A0Vu6k4/wZ97WZSjA4qCm2Kt6FYEZpLFQCsX2f2pXcuHW2yrQFj rzQ8+FXJokq3/yfzZ0qxdzNgOI75p5VB72Jc0R3FG4b0iji7VD60UDmlQiFGZ5vvGscByZeovdZ CiAOg2AiGy5thr9b7Z+sqKOlR/9uloRtt8Yapb0RmDQDwyDOJcEpsqZOgAV6RX0ttpNfwJR4j0A mgfTrgALFmuc2tLs0SWqNsUi0S72u+pJELdr/dpVhbwK8LPJIK2HLG7nIJLJ0OoXeubT7PNW3HZ LC+wfn051Q/zj+mt+oSuCq/IZS3mUqLXYBrFS92FTh8B515Ek4c1YV6g9neaH3VT X-Received: by 2002:a05:600d:416b:b0:46e:3dc3:b645 with SMTP id 5b1f17b1804b1-46fa9a87f3emr106303415e9.3.1760189653022; Sat, 11 Oct 2025 06:34:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFtV9tbvbseqgGrpqWanitIab+H9OT71aqvFsNv4I/7qQQ7d9+ZlRofchQewtkkXXKFy8WIig== X-Received: by 2002:a05:600d:416b:b0:46e:3dc3:b645 with SMTP id 5b1f17b1804b1-46fa9a87f3emr106303265e9.3.1760189652539; Sat, 11 Oct 2025 06:34:12 -0700 (PDT) Received: from localhost (92.40.184.126.threembb.co.uk. [92.40.184.126]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-426ce5e8207sm8717244f8f.47.2025.10.11.06.34.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Oct 2025 06:34:09 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/2] Auto setting of 'remote exec-file' Date: Sat, 11 Oct 2025 14:34:02 +0100 Message-ID: X-Mailer: git-send-email 2.47.1 In-Reply-To: <40cbbd9f0082b07e9767656fe044bbe9280983a3.1759763251.git.aburgess@redhat.com> References: <40cbbd9f0082b07e9767656fe044bbe9280983a3.1759763251.git.aburgess@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: coqOZpxx4-64ocnrn0gWsnvrAFaC6A4KUXHM_TV6sBs_1760189653 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true 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 Patch #1 is some refactoring requested during review of V1. Patch #2 is the updated version of the V1 patch. This includes: - Rewrite of the NEWS entry to try and make it more readable. - Use of child_path function rather than startswith to detect when a file is inside the sysroot. - Add get_current_extended_remote_target rather than templating get_current_remote_target. - Updates to take account of the refactoring in patch #1, that is replacing a std::pair with a struct with named fields. --- Andrew Burgess (2): gdb/remote: replace use of std::pair with an actual struct gdb: use current executable for 'remote exec-file' in some cases gdb/NEWS | 8 + gdb/doc/gdb.texinfo | 4 +- gdb/remote.c | 216 ++++++++++++++++++++++----- gdb/testsuite/gdb.server/ext-run.exp | 160 ++++++++++++++++---- 4 files changed, 319 insertions(+), 69 deletions(-) base-commit: c1950dcc04c07e713b708efcf1c6cc88eda60843 -- 2.47.1