From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id o4kwBc2xKGmWpDkAWB0awg (envelope-from ) for ; Thu, 27 Nov 2025 15:17:17 -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=AV4o8iHz; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EE4891E0B3; Thu, 27 Nov 2025 15:17:16 -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 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 6D9FB1E048 for ; Thu, 27 Nov 2025 15:17:16 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5D431385842D for ; Thu, 27 Nov 2025 20:16:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5D431385842D 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=AV4o8iHz 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 9DB373858402 for ; Thu, 27 Nov 2025 20:16:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DB373858402 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 9DB373858402 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=1764274563; cv=none; b=LL7MPULF/Z37JiZqC11zuPQhYTMjLCbV7BEkfUa2xJuSRqhWbFVz0lmmsIQ+AHv2DTyjS6Fn4M1FicVnY9M4fMZSfrI9vOxRvVEb5As/S5lByoUyUDDZ2q3NLRhleNq0o3jorusynbHmqFbzVx/djgX60fLaTsgljUVSXDRsLs0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1764274563; c=relaxed/simple; bh=s59pYn/1onW+m740uR5of+yyKe0OblrQ65/kCqLQuUY=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=qF3KBC2eXcgU7wfUmdxTZ+qAxLbgCQ2hFDqHtx+VOc5rdpbyRzMg4FXHIhQGiAafkhPBecBcgQVW6ajAUkIpDBjd/WyxcEHSIiZ5gBZ9jr1Q6zT8mCoStoSKVmg0v2CPHVKSW/mtij9xi78T9xPdZ3hH9916fnKbAIA3bSWVN6o= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9DB373858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1764274563; 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=OQEVYiDND6LNCV62aAltdvE6eSHITqUXeD9w+U39Jcw=; b=AV4o8iHz8JRAUdJLUhLC+5mJrW6s8gv8MfA6WucmonX0zml7jkl5hLpQQrYklXJBPVxkmj pqST3QfCLnGjWdrPCndbfuRniviYq3YJV3ijEpdPtzFuXnFKMY6d6cwdFXTmSoM1RXYBt2 Lan0i8/f1KQwKbFTeKPz5J/aQGb6gPY= Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-645-ExUcBoHhN_mpWmk_I1rWuw-1; Thu, 27 Nov 2025 15:16:01 -0500 X-MC-Unique: ExUcBoHhN_mpWmk_I1rWuw-1 X-Mimecast-MFC-AGG-ID: ExUcBoHhN_mpWmk_I1rWuw_1764274561 Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-b969f3f5bb1so1620315a12.0 for ; Thu, 27 Nov 2025 12:16:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764274560; x=1764879360; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc: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=OQEVYiDND6LNCV62aAltdvE6eSHITqUXeD9w+U39Jcw=; b=G8aDCD9o7Sm4p7zNvchlH4Jg/MCadxO4WFyOmZL39gFETaJWMeRovM2mkzVTAEoKDU MC6ivbTE9k2fuYWmuE2VYhON9fx6OL4JxXCDQnEjSomZT2ZEcMIetMMLn/UsTjbSxwYy Yla5BCJIiNXuQAcYzgpkTK3AYr5LHAWbqF395ndrV/Jyer4w4yF9c9tEDQZ98fMdex5F 73VeizeYLLgyLskJC9UmFnCBwrZZ1tWzW6BE8++m5TPU75TCnolSe5NDKrQm9OfxUXAD 8Vx+zeOZ8ZAQxKS2lqJLGN2oRiCvJvnvXKtWIwF3kLkzeP+FmBmVxQ/UBFmw7GAS/iH3 z81Q== X-Gm-Message-State: AOJu0YxLAXU9yATT5wGtRkzit78VpMd8C1yOW/K2hU6bUmAQyVNLUb8s FizmGgBHbL34w7pj03d7QUYYGQ+LOz08nkTvLbgGdwOp73N4fZJli7d8qYpnL9bzd9CxyUZetgW DoKNoFEzRY4Kxz7lo2rDr6NZSmTSE7hsjgeS7PP2qec6lv7538wcY9QeqgGyYaRfGdIW6mWo= X-Gm-Gg: ASbGncv1kandX1UZy8Qz9WhR1adRHjHJ+nKu4e8okKW8hc1ugAzU2i5qv/FVDykPLuH vrIBFvu0vdSpovXR2rLK892fNVShz/HwOVW3fS6U/dpGHF4LN5A26KOTbynC5+2MJ6RPE056hN5 o988yCCQ1isp71x1jOYhmKEih4mcbsUbsHTuPqQXbuNX08IKiFAFc+h5q9docYVDMCt0Q7IQ8eP 0zW/1tLkfU65PhU5XmMjSeG+PE495wqQndRlPlO+u7gMRj6q+UWY8bfvNes6AvBjPe5kOm4k66P 7xVsPU4265YjWlk2dFeD+yMMwzoYvt4oK0Ba6s+ZA2972sIGF4Iih9v2P8vnxIzdpbsAvKIKWhU V48v42ACKqAcfaF8UvuPMyg== X-Received: by 2002:a05:7022:7f1c:b0:119:e569:f615 with SMTP id a92af1059eb24-11c9d712704mr10809016c88.14.1764274560158; Thu, 27 Nov 2025 12:16:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEG6G152pQNtp4RK7H+vgKrFrwFSZbrfEc/vwZyQgn8DwMQJc2DSv1xT1a+IZj/jTsbWyLeTw== X-Received: by 2002:a05:7022:7f1c:b0:119:e569:f615 with SMTP id a92af1059eb24-11c9d712704mr10809002c88.14.1764274559664; Thu, 27 Nov 2025 12:15:59 -0800 (PST) Received: from ?IPV6:2804:14d:8084:9a69::1004? ([2804:14d:8084:9a69::1004]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-11dcb04a07bsm9501635c88.7.2025.11.27.12.15.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 27 Nov 2025 12:15:59 -0800 (PST) Message-ID: <1e9baea6-7d12-4ca8-a094-d4bdef64727c@redhat.com> Date: Thu, 27 Nov 2025 17:15:56 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 2/2] gdb: add warning when no native target is available To: Eli Zaretskii Cc: gdb-patches@sourceware.org References: <20251106194514.1857177-1-guinevere@redhat.com> <20251106194514.1857177-3-guinevere@redhat.com> <864ir6b7wh.fsf@gnu.org> <54086583-2fb0-498b-85ea-ebcb7e66f806@redhat.com> <86frapapp4.fsf@gnu.org> From: Guinevere Larsen In-Reply-To: <86frapapp4.fsf@gnu.org> X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: UWFO9X4MuMUSrlVUf260vjTnyItR8DBdUVCcxThOHAc_1764274561 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 11/7/25 11:21 AM, Eli Zaretskii wrote: >> Date: Fri, 7 Nov 2025 10:24:15 -0300 >> Cc: gdb-patches@sourceware.org >> From: Guinevere Larsen >> >> On 11/7/25 4:48 AM, Eli Zaretskii wrote: >>>> From: Guinevere Larsen >>>> Cc: Guinevere Larsen >>>> Date: Thu, 6 Nov 2025 16:45:14 -0300 >>>> >>>> + if (get_native_target () == nullptr) >>>> + warning (_("No native target, only remote debugging is supported.\n" >>>> + "Use \"%ps\" to check which architectures are supported."), >>>> + styled_string (command_style.style (), "info architecture")); >>> Would we also say "Native debugging is supported" in the opposite >>> case? >>> >>> Thanks. >>> >> When you debug an inferior without connecting to a gdbserver, you are >> doing native debugging, but I don't think it makes sense to warn the >> user that native debugging is supported since that is the default >> behavior of GDB, if that is what  you mean with this email. > Then perhaps I don't understand the purpose of the patch. I thought > it was part of showing the information about GDB at the start of a > session. In that case, I think it's good to let user know that this > GDB supports native debugging, and also tell them if it doesn't. > Apologies if I misunderstood. > The purpose of this patch is to make the user aware that GDB will not work as they likely expect. Most of the GDB usage and explanations that I've seen so far barely mention gdbserver, and basically never mention debugging a different architecture, so if a user just fires up GDB and it isn't able to debug anything natively, that will be highly unexpected, hence emitting a warning. -- Cheers, Guinevere Larsen It/she