From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oRYSIyt1+mhT2wQAWB0awg (envelope-from ) for ; Thu, 23 Oct 2025 14:34:19 -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=iVTjGLy1; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 8A8A01E0BC; Thu, 23 Oct 2025 14:34:19 -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 077841E04C for ; Thu, 23 Oct 2025 14:34:19 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7F8A33858023 for ; Thu, 23 Oct 2025 18:34:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7F8A33858023 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=iVTjGLy1 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 3825E3858419 for ; Thu, 23 Oct 2025 18:33:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3825E3858419 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 3825E3858419 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=1761244431; cv=none; b=JCy8sYaMKD1l9Og4CHFxNcdSpd28sc9dD5DEIZO7wKNZThMbz8BENSgz7hzSi+BQMp38pEiPUDaZLuHt/YaRyPWzPMIllzH+7T4uYa0tY/ZPHo2N+T8I89/cZ0Hn/A5ZGnUirtuIiCVqRb50fRGmCv+lk7HqHFqLRpLofUNs9UE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1761244431; c=relaxed/simple; bh=pNhlXbAls7mHrB1HPXAVvCzXrcZ6fyFh9yNADRg5g0s=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vJ2qLLbaNM9VP0Czkj87HEAntnp9O2Vjq43HH5I3uuiMDIjueSsjh13vPeFIvqb3/f1g0x4hcJCU0xcuEH2N1ByK1YbtUnw4gzn0tXid3i24LZ9avdlmleaPiY5mTZzwBiKLElAB6gAkGntxE48nZcX+YvlgCVcE2x4BbaQh2kY= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3825E3858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1761244431; 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=xltIwp9MN1UPpYDKfrGjscFNpJEbCJUBBF0IJW+cvqY=; b=iVTjGLy1Zqkf0FIsk64kyxdzBqK4tJ0d9PVfWFvkm/mQ4oKAGnzWeTvv9sr5AY+1oMYGFx psZT2gcJQJK6vp+T/qfOrc2OEBO4beL/MoN9NmwBO48P6xdmO7LFAZmaUxt1tBauvMe/Md 6SvnvQzuAbh/d17pqhtuAPis8puZ3N4= Received: from mx-prod-mc-02.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-252-2x98j7ZmMDaq7KkJEtemCg-1; Thu, 23 Oct 2025 14:33:49 -0400 X-MC-Unique: 2x98j7ZmMDaq7KkJEtemCg-1 X-Mimecast-MFC-AGG-ID: 2x98j7ZmMDaq7KkJEtemCg_1761244428 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id CAEAF1956096 for ; Thu, 23 Oct 2025 18:33:48 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.150]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7172518003FC; Thu, 23 Oct 2025 18:33:47 +0000 (UTC) From: Guinevere Larsen To: gdb-patches@sourceware.org Cc: Guinevere Larsen Subject: [PATCH] gdb/reverse: update error message for "reverse-" commands Date: Thu, 23 Oct 2025 15:33:42 -0300 Message-ID: <20251023183342.219421-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ofJzopODk5tKSiD-tpCYYJYXHFDGeuEMJFNPn0CcAo8_1761244428 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 Before this change, when a user tried to use a command that executes the inferior in reverse, they would get the following error message: Target multi-thread does not support this command. As an end-user with no knowledge of the internals of GDB would have as a best guess, that reverse execution as a whole would not be supported in their system (verified by asking a couple new users). This commit changes the message to avoid the internal terminology, and to add a hint that the user may need to create a recording somehow to be able to execute in reverse. --- gdb/reverse.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/reverse.c b/gdb/reverse.c index bda23ed2199..0d67afad45e 100644 --- a/gdb/reverse.c +++ b/gdb/reverse.c @@ -44,7 +44,8 @@ exec_reverse_once (const char *cmd, const char *args, int from_tty) cmd); if (!target_can_execute_reverse ()) - error (_("Target %s does not support this command."), target_shortname ()); + error (_("Reverse execution is not currently supported.\n" + "You may need to record the execution first.")); std::string reverse_command = string_printf ("%s %s", cmd, args ? args : ""); scoped_restore restore_exec_dir base-commit: 8eeb52e3c7701f03711d51a2209c39d85d109500 -- 2.51.0