From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MvxjF74UZWnKgz8AWB0awg (envelope-from ) for ; Mon, 12 Jan 2026 10:35:26 -0500 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=IcVwxCdj; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 4D0671E070; Mon, 12 Jan 2026 10:35:26 -0500 (EST) 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 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 A86421E070 for ; Mon, 12 Jan 2026 10:35:25 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 094E04BA23C4 for ; Mon, 12 Jan 2026 15:35:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 094E04BA23C4 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=IcVwxCdj Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id C6B434BA2E07 for ; Mon, 12 Jan 2026 15:34:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C6B434BA2E07 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 C6B434BA2E07 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768232058; cv=none; b=CTn0ULdR/zcbwF2L9KoSlnDqZnYn6bm+/nMoFWX7tV+cLhqN5lHat640rhkYGtcnuhu9XKr4O6MpdajWCgQJX1mWK9D0CA8ouH3vxhMcsieOQNdiJiAhoxALUL6/VF+4D6LnF4sXeojG4yR81q/soAJmNORirpY7mvASH9+PbEA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1768232058; c=relaxed/simple; bh=Ewc7bQJjSCVzjp00oAB7uVxOEYDacx405SM7WArpqJk=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vrql4J4ESz4syxFaAJ8RxSKMa/IOalHBqTBt70hpt4ENr84ecX/6lTsL9ul79tXSq2fN7WUoyWi8TjPElSc3rUOC+ZPGSB3bJPRBZSlnmCyK7vYWylsvS6rUStzfUh5H2QNjO6F3hYVRgYyIAL6SKG8+zJBU6KbQldo8FyUHF0E= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C6B434BA2E07 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1768232053; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9wrk+IRfTTiX+RCedkn68onwIsFlnqkyPSzHM1PJScM=; b=IcVwxCdjUyElLEADCTYaTBTsHg5C5AGcFWVqjnB7onwSKXICu9amvGO5VQNkQGwndDGI1o Id5JCgn8rU85Vf+sLAIlucwC16qsweoEYPtk4Z6eiTU00988ZXqhi8UJVz5NZtn4Mn9qs1 54JaSxUXr7NW5PvRPK7r2aGXCNpOB5M= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-241-pHXlQBgqPjSTRhpfhPPF0w-1; Mon, 12 Jan 2026 10:33:49 -0500 X-MC-Unique: pHXlQBgqPjSTRhpfhPPF0w-1 X-Mimecast-MFC-AGG-ID: pHXlQBgqPjSTRhpfhPPF0w_1768232027 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-430fdaba167so3309312f8f.3 for ; Mon, 12 Jan 2026 07:33:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768232026; x=1768836826; h=mime-version:message-id:date:references:in-reply-to:subject:to:from :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9wrk+IRfTTiX+RCedkn68onwIsFlnqkyPSzHM1PJScM=; b=EFMPNVDwPYxxrDX+yd0GAWcdVJ7mLvzuEHiMaCS7OtDZUcOFkWzwrJlZbC4nwG3vMm GgpUYWHs59PbLAh5P7uMuLLWy0DIBOXv+HsgO5ksrcjugh3fcm21ueE/jblkNfSeSB1T c0EZrCD00gAKZgt4FwTtlsdO6VwC+6lWaC4JCP03fkOx7a+Nr55fqNsxxRMI9712q78C OM/Y+YZpxCw5gBLjpjjVQ7semWfibPOcbNaj6yzo3TVnpqe//D3l1QMi1ZrbrU9M9UEe 9et7LwOAQoEisKqXRoEnuJdTD/ST2ZzrNvzSacZCoRRNTMF66wgpX8kHrNpHJYSdqPaR OBjg== X-Forwarded-Encrypted: i=1; AJvYcCWZhf0AkaDtpx8ryEiu8folYFsqIHi32wsWT/N+vVMoV/LpkOTUMFGphol32WVZ74EvQYo+PnIL1z3U2A==@sourceware.org X-Gm-Message-State: AOJu0YxBVbYUoqPz6X3WM9u45fUruLrYj+rGcvCkwfFPfM0qy4rZ4pgD XNesWKQsOUkYyPiXrubNkGE1IbcVg+0RXy/orv+zJAedJaSMlJZfWXj4EjWWlByEL24E/Zzp/VE jq2FoilOnLteFzYgPDZaySUxJrbPzD1BZynOXQdP1NjeuCQPOJLvqH7I4lAkhLx9l+JJ4T/U= X-Gm-Gg: AY/fxX6XWLYCg6p+My6XXS768u6qs3Zbo0F7z4XMydefkHq1CSckLFV27y4VCZo37sK XuHMmkHBNtBJgEDmGhEbmo3HXrCTBALJB2EGxRKSUG+7gVvvZ3W2HLDkmuiDjEcNSisItMJK7Nq D0QEmNDAjf4ZAvulXqZ5PRwfxsny7hraoApg17ocFGNfxhL4FmEKxEWE5Hr6JWe4/krYZPsmi0I yjIximCg0Bi0tYHo7ZMcfZCXmJa3DhSYitvZplLqSc0q0PlM1u/SVgGJTgGsroQ0I5OlRPmRmxN 3KOBKNLrhGrJhryKUSCP7CogNsGvDeQ09PIVCHq0KzZ05MVhFZetmlpcWBWzr3+C54renOB0voT GSAA/UwxnjQ2GE3wJtflICkIDx6Su X-Received: by 2002:a05:6000:2084:b0:432:5b81:49c with SMTP id ffacd0b85a97d-432c377589amr19337386f8f.55.1768232026442; Mon, 12 Jan 2026 07:33:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEsRdCVdthWkXsE2IWBdcqF+uIioLUC07aahmsPRTIegpfpVkKXBztaAKXCh8D6CTn9V5J3w== X-Received: by 2002:a05:6000:2084:b0:432:5b81:49c with SMTP id ffacd0b85a97d-432c377589amr19337360f8f.55.1768232025987; Mon, 12 Jan 2026 07:33:45 -0800 (PST) Received: from localhost (13.81.93.209.dyn.plus.net. [209.93.81.13]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-432bd5ee870sm39500979f8f.36.2026.01.12.07.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jan 2026 07:33:45 -0800 (PST) From: Andrew Burgess To: Guinevere Larsen , Ciaran Woodward , "gdb-patches@sourceware.org" Subject: Re: [PATCH v2 2/2] gdb: add warning when no native target is available In-Reply-To: References: <20260109115621.26003-1-guinevere@redhat.com> <20260109115621.26003-3-guinevere@redhat.com> <1d1c0ce0-ab58-4b8b-ba05-119f8401ab8d@redhat.com> Date: Mon, 12 Jan 2026 15:33:44 +0000 Message-ID: <878qe2vo9z.fsf@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: TabPMUe68B39qM2VYKfm00gg_NYuvAsxxN3pfkvdL9I_1768232027 X-Mimecast-Originator: redhat.com Content-Type: text/plain 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 Guinevere Larsen writes: > On 1/9/26 11:16 AM, Ciaran Woodward wrote: >>> Hmmm, that's a good point. I think I can add a switch to this, to be >>> added to the gdbinit (or maybe gdbearlyinit), will cook a v3 in a moment. >> Would you object to making it configure-time, or would that break your >> intended use case? Currently, if a user tries to 'run' when there's no native target support, GDB gives an error like: Don't know how to run. Try "help target". Would your new text be better emitted around the time this error is produced? The actual output of 'help target' is pretty unhelpful for a confused user I think, it's mostly just a list of the various target sub-commands. But there is some introductory text at the top, maybe we could do something smart and inject your new warning there for GDB's without a native target? Both of these would defer the additional text to the point where the user has tried to do the wrong thing, at which point, printing more text is OK. Just a thought. Thanks, Andrew