From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kSaPHsOFc2lGdhEAWB0awg (envelope-from ) for ; Fri, 23 Jan 2026 09:29:23 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=UNpipntG; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 791D61E08D; Fri, 23 Jan 2026 09:29:23 -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 B449E1E08D for ; Fri, 23 Jan 2026 09:29:22 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 57CC54BC89BD for ; Fri, 23 Jan 2026 14:29:22 +0000 (GMT) Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 9610B4BCA403 for ; Fri, 23 Jan 2026 14:29:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9610B4BCA403 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9610B4BCA403 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769178552; cv=none; b=Pqrd2GXv765ywVcgnett2KTWesYkKrt3p9HDbQIkC3K42oU0rS4J5YRTool5G8IaTi7+84d29Zt6qW8WdJBpREaToDO1ayRaeFoPfmApcbW9os0dwO+wP46SsESBQIgtRwNdIomFuW3RwupFRWpyPeET1O0eUACYbksFLz/YLik= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1769178552; c=relaxed/simple; bh=g+ZK9OhkxSv1/dOueJeIc0lP5bqRYEhM0YZ2YtUjwVA=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=qiPeDQivWloLq5nYaGPQw175gY0dQ/2iBOeEeisV1G53J/RY1Q1r8f0kf5cPCAaavXWD0Z7+HnhOFbcnTUvtdjOXFQEehyEuynkt7wIojeMkqUinF1yWedXaVBW55Jh7Uyqj5GvSWLQFuWdeGjHos/aNtw61TVkUiKhZCDCU6xo= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vjI9o-00060Q-4t; Fri, 23 Jan 2026 09:29:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8Uj6LzYvjVTy1sFeVZ0FbSD3xART1lRX0/S5ggTGI68=; b=UNpipntG7k9n p9EGk9yScaMDgbaHzK7dTWD2a3BNTAO5t5UIMn4gbL1T3i9yh8V9kkBh4RaRypzGJkpTCRpHYCmbS WlkDnLEUkRtbi3r+mHCmFU4cAcxu8MMtkSztYKRMNRuz8NKzXHW5bAfZ3UbkqGbTvXWSJO29S4DD1 at51OlpOKvIqiWQfPqr71Ba3SMG8nsVhLofNwCQz5W0ON99fLSFgL9wgE3SqrZ4bl5zs4c2vw7a+q nnk6BgJuGEXJk5Mpmn7XWbwpSxPMchWGY2/YD3EzV2ZuL8VjRw0AedK0tkuYcAazb6Qt/x7Bd+wVw 1mVMu1EUToZoi6Rbsdowgg==; Date: Fri, 23 Jan 2026 16:28:02 +0200 Message-Id: <864iocietp.fsf@gnu.org> From: Eli Zaretskii To: Guinevere Larsen Cc: gdb-patches@sourceware.org In-Reply-To: <19c407af-d5a8-49a0-9413-1d41d23c7fbf@redhat.com> (message from Guinevere Larsen on Fri, 23 Jan 2026 11:14:20 -0300) Subject: Re: [PATCH v2] gdb: add tutorial command References: <20260122202834.393095-1-guinevere@redhat.com> <86o6mkiz1o.fsf@gnu.org> <19c407af-d5a8-49a0-9413-1d41d23c7fbf@redhat.com> 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 > Date: Fri, 23 Jan 2026 11:14:20 -0300 > Cc: gdb-patches@sourceware.org > From: Guinevere Larsen > > > Isn't it strange to teach newbies that to assign a value to a > > variable, one must use the 'print' command? Why not "set variable"? > > It is a bit strange, I suppose, but "set" (like "call") are not things I use personally, when print can do the same > and is one fewer command to remember > > And this doubles as a warning that if the user calls a function that has side-effects, those will also happen, > and they aren't necessarily always desired by the user... > > I can change it if you feel strongly that we should use "set" instead, but I find the side-effect explanation to > be worth the unintuitiveness I think the tutorial should teach the commands intended for their purposes. Some commands have side effects, but that's not newbie stuff, IMO. What do others think about this?