From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id b1GdC3UFYWlILDYAWB0awg (envelope-from ) for ; Fri, 09 Jan 2026 08:41:09 -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=P1rSV0Z4; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1F3791E048; Fri, 09 Jan 2026 08:41:09 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.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,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 176931E048 for ; Fri, 09 Jan 2026 08:41:02 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 3543E4BA2E30 for ; Fri, 9 Jan 2026 13:41:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3543E4BA2E30 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=P1rSV0Z4 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 741E44BA2E26 for ; Fri, 9 Jan 2026 13:40:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 741E44BA2E26 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 741E44BA2E26 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=1767966037; cv=none; b=Ob1nqbhYvrNFRfNhndlcQbZGP0u5oQMtQ9LuMoaPWHYZz/uwVVvtjo6o3RHisi0Ytu0EZvV5lCBq9/RqnC5QVI9p4LaU5cVEVDfc+nUIuY38+x/KwVRmOG7+GVVkSmc5JQNBszOlXT6W4mj0RF+goVC+K0sMNbPcniz/r5v1mEw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1767966037; c=relaxed/simple; bh=ChngJOyP9715Zc81PA5hJMV/P+nSgSDu1wbSFQryVQM=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=veqQJFPbn3rX9Zx13dAyWr6uJnRdz38qG4h2QKWtBScvG16CAF01RJA3xzJhLVb/T6XDFEKUyK+XUjOq8jiHTBJJaJhpazM9UowTf1FcPlQk0/PYaZdi7cy4moF8xEzLldALl0mqW61FSKTd17mtlOHS9wPbqvVhfQJYWdzoMy8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 741E44BA2E26 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1767966037; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ij5o/CUo+6NF/O2ha6sh3pwDOnui1TrXPd2Sq57EvKE=; b=P1rSV0Z420qEkI/hDhYqJqW1PrP3hZzLVT9BiJiVMcc6SH9xJOpXnxJeRZVaBD8mMkPWX4 05AqEWKb4RJMMEEIigzzfvQpwhhraRa985jLFuWzi4ZMsjhrkL6dv8fqZbIB2IKSVZ6lML wj2bk8cMGMz/+BeD2cNo8Sp9QnUhmKU= Received: from mail-ua1-f69.google.com (mail-ua1-f69.google.com [209.85.222.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-691-jvPc5MUWNCOLqFT-YI31Cg-1; Fri, 09 Jan 2026 08:40:35 -0500 X-MC-Unique: jvPc5MUWNCOLqFT-YI31Cg-1 X-Mimecast-MFC-AGG-ID: jvPc5MUWNCOLqFT-YI31Cg_1767966035 Received: by mail-ua1-f69.google.com with SMTP id a1e0cc1a2514c-94120e0acbdso4647348241.1 for ; Fri, 09 Jan 2026 05:40:35 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767966035; x=1768570835; h=content-transfer-encoding:in-reply-to:from:content-language :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; bh=Ij5o/CUo+6NF/O2ha6sh3pwDOnui1TrXPd2Sq57EvKE=; b=RDpKNx2QmnzcJUrtzxOes2NOYHpubB3tZ8YNhHbuwC5KgRb6uDTJrX2RjBPwRercv7 Ygy3mnj3dQd7qcgTeaGjsSGmaZwEViR0NKb50LaRk/VK7j5wgv7qigLRNleNSDAE/QTL 832r+c17m4zMAW9WqM9YvjNWuoT6ofuSxaM3tQ66etTJK5ZpwK9SHO8hXBN31riERmq1 aDqYCZYkng3pXyx37VUAfDsc9iBbLWf2CN131S0+lOXkF1i3oYgdLtTbKj3/AXY70H1z /e7ElkMkNiq3lKgmczv4NXiOsMwJCfl5C+taqCY+As5nXNM9VyFCgYw73eclPa1vOCYO R83g== X-Forwarded-Encrypted: i=1; AJvYcCXLbySE+BqIcKWRuj+A4BfAGhPUjlnwZHYGYCX4ZCWDaSEIaNmL8eEpRRzwfuoqI9Z2U8xfvQA1SmkddQ==@sourceware.org X-Gm-Message-State: AOJu0YybjfWfyrz6vnnm6FsivgY66q9LmJbldOJtrOhJ5voVRF8vtLfm WYqVAYWWXII6GZTARGG5VJdjuz+O1gcadIow91re+XwPiMmFo1IVSs0tVa5kkzQCbVU7uNnXTSL eFea9kKvjbdCzwpfSlZCjY7m20cwFuuqe7Ewlk/5ndkb7I0B6XfrbTfOM3pMX6RM= X-Gm-Gg: AY/fxX5gPJORH5XDdU4IBgpHLPw1ZmDJX5wUr42ddVyUCjunLZ6gCdE2gs1S8NMaX4W Y3YI+NrwlX1T/QdPdJkI4DGgqyAzLXUWgmK+vAC2v9NxCBPbgTO/fEsUQdJEj2MT0yE646y9YUG zmqJA5ah00boRk1XjmnZufSFIGb77MU5w6ZS7TX5PMtWXJ8oqK0yTuj8JmZg/iqCwiErHA1evcK qa8YR7v/lm6aP8GBkDSsrwSQgklVRV0CUGHd+7gQLv2fEbGabPLFY/pRgELfCrg3AmcQwcSehgY x7d7nEFHKlkVNMO1BQpDJDpzD+qLncrzRgsMtFv6gTaJDVx7r8aRFiey6TFbvlnPsVkfaFFXIvF ezlLcYhuyCGAQkWExfRMXtg== X-Received: by 2002:a05:6102:a4a:b0:5ee:a8c4:18f2 with SMTP id ada2fe7eead31-5eea8c41ba5mr1359543137.26.1767966035155; Fri, 09 Jan 2026 05:40:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IHhXEOpVI+1wVjHQuJlg4ikrkbTMQLBrKmYn4NHqXjuE0DHltKvS14yLgQtzJaKE2l6WzBoJw== X-Received: by 2002:a05:6102:a4a:b0:5ee:a8c4:18f2 with SMTP id ada2fe7eead31-5eea8c41ba5mr1359538137.26.1767966034706; Fri, 09 Jan 2026 05:40:34 -0800 (PST) Received: from ?IPV6:2804:14d:8084:a5b1::1002? ([2804:14d:8084:a5b1::1002]) by smtp.gmail.com with ESMTPSA id ada2fe7eead31-5ef3cf2edaasm1712422137.4.2026.01.09.05.40.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Jan 2026 05:40:34 -0800 (PST) Message-ID: <1d1c0ce0-ab58-4b8b-ba05-119f8401ab8d@redhat.com> Date: Fri, 9 Jan 2026 10:40:31 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] gdb: add warning when no native target is available To: Ciaran Woodward , "gdb-patches@sourceware.org" References: <20260109115621.26003-1-guinevere@redhat.com> <20260109115621.26003-3-guinevere@redhat.com> From: Guinevere Larsen In-Reply-To: X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Ep8wS-SkTPdnxPKhFoJuBEEbvNNLewl0NRd72WRtMYw_1767966035 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed 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 1/9/26 9:36 AM, Ciaran Woodward wrote: >> -----Original Message----- >> From: Guinevere Larsen >> >> When a user starts GDB, they have no way of knowing if native debugging >> will be supported or not. This is most relevant for Mac users, since >> GDB hasn't been ported to Apple's CPUs yet. >> >> This patch adds a warning if, after initializing all files, GDB was >> unable to find an appropriate native target for the session, informing >> the user that they will only be able to debug remotely. > Thanks for continuing to focus on usability :) > > I thought I would add my perspective as a primarily embedded developer. Most > of the GDBs I use are "cross GDBs", for debugging embedded targets that > can't run GDB themselves. These get configured by having a different HOST > and TARGET in the build config, and I tend to think that usually its quite > clear that you're using one instead of your system GDB. > > I think for such debuggers, it would be good to have this warning suppressed, > since users usually obtain it as part of a tool suite for that same platform, > so wouldn't be expected to get reminded that they can't use it to debug host > programs. > > Thanks, > Ciaran > 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. -- Cheers, Guinevere Larsen It/she