From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ad6WNr8psGlrviEAWB0awg (envelope-from ) for ; Tue, 10 Mar 2026 10:25:03 -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=fbEDTXwe; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id D54EF1E0DD; Tue, 10 Mar 2026 10:25:03 -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 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 0C8CD1E08D for ; Tue, 10 Mar 2026 10:25:03 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 9D09E4B9DB71 for ; Tue, 10 Mar 2026 14:25:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9D09E4B9DB71 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=fbEDTXwe 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 B25994B9DB44 for ; Tue, 10 Mar 2026 14:24:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B25994B9DB44 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 B25994B9DB44 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=1773152677; cv=none; b=EUBNzoZxPqIrSz/K3YqHpgkFqQoC1RD81OBusE121G/fqkH8D6v+pB+C24dprPzbcyJAAVE4axzgcjdhzCdfsTZlIcXkEcdu3mzXbZuIuALpU4LNK6fEjU0IP43O31TOrmw7gmDpg33/4Er6BPg1TfjzmiU+WVHS1e6zo8JsZcQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1773152677; c=relaxed/simple; bh=SQWxrdw5NOFaXlesaxH4sZbblvtn7QjsJ5bJkQLb1R0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=VPzdQADBARq5VDFc06YE+8TgXpUfSNYis988lkd2x9VVZ+B9DvJ4sXAVmA+nU7+3Rv1uaNXifnFgwGJRM2l0kLu6tyqYz6X9TORmB8Cuo5/Zmyj/h6rE3n7UhOJuW0jWdv6gDr3F44JUtWxHw9IjrwdsPZrBHu8Wh6tLpH5mdw0= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B25994B9DB44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1773152677; 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; bh=pMdVElv6vz5VRbnp//sU9GkwLQv8qYlfdDoGCFNkvp4=; b=fbEDTXwekDkZrtrx8z8xaldAZulc0YOASeKaseHw/+ckotLQmeqYsqsUqONzzwp6nj5b3G njkvnE+53NshuqKZsnD69HrVLgwE6AamnYMyMzxUc4+AM8u7NeRSC2bedCfeY3/0HBNERE +kxAgA6/LBdBfHCMaKpoI1Wojna/pdI= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-508-0MYLEQ99Ooy272iokdDhHA-1; Tue, 10 Mar 2026 10:24:36 -0400 X-MC-Unique: 0MYLEQ99Ooy272iokdDhHA-1 X-Mimecast-MFC-AGG-ID: 0MYLEQ99Ooy272iokdDhHA_1773152674 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 139801956057 for ; Tue, 10 Mar 2026 14:24:34 +0000 (UTC) Received: from fedora.tailb97d54.ts.net (unknown [10.96.134.165]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D162D1956095; Tue, 10 Mar 2026 14:24:31 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH v5 0/2] Add warning if the native target is not supported Date: Tue, 10 Mar 2026 11:23:22 -0300 Message-ID: <20260310142323.2619350-2-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: IvBZ0t5w6WuJCeC6EMg_ZTP0rLj-cZrZ4mdDbgc5WKU_1773152674 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 Recently I was trying to conduct a new-user test, to figure out what things were stumbling blocks, and one of the users had a macbook. The user on their own would not have been able to understand what was the reason that they couldn't execute the inferior to debug it. This series aims to make it a little more obvious, by making the warning about not being able to "run" more self-explanatory, and instructs the user on how to get a list of supported architectures, to know what they'll be able to remotely debug. For v5, some tests were updated as Linaro CI correctly pointed out that they were failing. The updates were just to expected output, no real logic change was required. v4 has minor cosmetic changes and a test for the help text changes. For v3, the warning is now only emitted if the user tries to do something that requires the native target, such as trying to run. And the help text now emits a comma separated list instead of 1 item per line. For v2, instead of adding a new command, this series changes the help command, to make it print all available options if a command only accepts specific options. Guinevere Larsen (2): gdb: improve help text for set commands with limited options gdb: Improve warning when no native target is available gdb/cli/cli-decode.c | 12 ++++++++++++ gdb/inf-child.c | 7 ++++++- gdb/target.c | 5 ++++- .../gdb.base/auto-connect-native-target.exp | 6 ++++-- gdb/testsuite/gdb.base/help.exp | 9 +++++++++ gdb/testsuite/gdb.python/py-doc-reformat.exp | 2 +- gdb/testsuite/gdb.python/py-parameter.exp | 17 +++++++++++++---- 7 files changed, 49 insertions(+), 9 deletions(-) base-commit: 1add703e09f0f8d073cde4af9d11cd59996e9763 -- 2.53.0