From patchwork Sat Feb 10 17:54:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 85568 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 38E333858410 for ; Sat, 10 Feb 2024 17:55:26 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 36C043858C66 for ; Sat, 10 Feb 2024 17:55:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36C043858C66 Authentication-Results: sourceware.org; dmarc=pass (p=none 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 36C043858C66 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=1707587704; cv=none; b=g2Qv1a1PwLaHtfMT7B9Bx2u9OkckHftWbq9Buxf6UEhvoiNOSYgejkvQEwQV1UGjtVUhTJEBXhuoLS0OWtPESjjLhppWF4BjJOu3MyXjaI4I2yHULMrF175sQA0IpgpM0Vc5ztQpGJ/PRijnXen5fSiwNn3D+loktHuW/toqLsw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707587704; c=relaxed/simple; bh=NWQrxMzz06g4+8pmfEhBnJjgEAhKRex+6Y6wrlePAwQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=SYHAVD4gj1TOF4aOve+lLCjygWqfM8PuC1yIObQdMYLmsp3ZcIfT04fd5SphUTQGQVIaiGGLdUsJInO/5Nvpq53qk8yPfXMN21DpBlVkw/TqyqoxDZCqn0jBTAfRJAUQ04dhQsiZZbjJWALO4JUTEFt15yQ5oab2dfoZSmOGb1o= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1707587701; 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=AQ1S5KlW2X8UmeQg8Y0TUxLbvB0o2m9DLz/2nr3zhOw=; b=boGSKQkx8g3Pwe7M3cGhqAJYr6zEu4DMZESA4uTGAAq7qe6yQeEpTRs8R5IOriDQFlU6rB kfr2MptZDEzrFJumlsENwHMrV/+3hViB01eMYGJchP2FwxiEgJ7gkhjuGGGhf3FQG/o41r aVnfsMaiPuZvcl+3j927m+gxCrFc4Lo= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-244-xGceSlvcOk6--PI6CJRRXQ-1; Sat, 10 Feb 2024 12:55:00 -0500 X-MC-Unique: xGceSlvcOk6--PI6CJRRXQ-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-33b376cc518so1181091f8f.0 for ; Sat, 10 Feb 2024 09:54:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707587697; x=1708192497; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AQ1S5KlW2X8UmeQg8Y0TUxLbvB0o2m9DLz/2nr3zhOw=; b=woh5+cA5cKpX2Y7wB72KSUz6BuCfpQxi0Ei4rFZbI/o02oONljuHDe2o7hg+Dbt4W9 M3qAlLncUms2Fs65VC8cCxuH1WQV6r5vfPoesrRhKA5o8f6ugQ0o3cpz2TKyzBvkG6/m XWS8DLaifdk8Xij4tYxR83JhDhJEWCakMJtoaj82Mw67Rk2S9w7enS7FJQTImCblsrXh lVR2EcUM1W9ENk9uYxMPVIj50OklsJII6rjxGij8yHgdRjaT6de7V8v75nbfhXMOkmjJ 5kDgWw29N6F1qg6HvjzHvF1YcieEnZXC/JaUbLI70bO1B9K623wB2DGeTBwLvb5mijVg OS4A== X-Gm-Message-State: AOJu0YysgcGptHS18wcYoEF9eyc0VzN+b4cE1maQemSUyXiHkwezpxhV 5/YLj/kO6mS7/cbKxzeoTG5GMSHmkRNBthHnfxcqATcg81Yp444MpZEdOXPQOsLzRGiELcq3/w2 hgqCz6vtgS7IM60JEpQV8o3fZwWJOlkfizr9PEAiaQVaSovP8CNu463wq/O164TUnqfaNX4kmLF Y7kAo7NO6eJykr25KEPDFY/uBkZNDIYk4zrzxjI7N6BQc= X-Received: by 2002:adf:e610:0:b0:33b:21e4:68d5 with SMTP id p16-20020adfe610000000b0033b21e468d5mr1531527wrm.34.1707587697768; Sat, 10 Feb 2024 09:54:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUIbclGOJTqSOudbtQhJLpci1UH6K0uGsNNHZiDHK76HYznQ+TErFVBP8dzndB6YuFcN8wGg== X-Received: by 2002:adf:e610:0:b0:33b:21e4:68d5 with SMTP id p16-20020adfe610000000b0033b21e468d5mr1531516wrm.34.1707587697206; Sat, 10 Feb 2024 09:54:57 -0800 (PST) Received: from localhost (185.223.159.143.dyn.plus.net. [143.159.223.185]) by smtp.gmail.com with ESMTPSA id ck13-20020a5d5e8d000000b0033b684d6d5csm2424167wrb.20.2024.02.10.09.54.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 09:54:56 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PUSHED] gdb/python: fix 'set python ignore-environment' white space Date: Sat, 10 Feb 2024 17:54:54 +0000 Message-Id: <4eba08320bbcc6fcb42d08fc27ac0ea8247255e5.1707587672.git.aburgess@redhat.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-12.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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+patchwork=sourceware.org@sourceware.org I noticed that the help text for set/show python ignore-environment was messed up, some lines had unwanted leading white space, like this: (gdb) help set python ignore-environment Set whether the Python interpreter should ignore environment variables. When enabled GDB's Python interpreter will ignore any Python related flags in the environment. This is equivalent to passing `-E' to a python executable. (gdb) This has been present since the ignore-environment setting was added in commit: commit edeaceda7b2f33b2c3bf78c732e67f3188e7f0b9 Date: Thu Aug 27 16:53:13 2020 +0100 gdb: startup commands to control Python extension language Fixed in this commit. --- gdb/python/python.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) base-commit: e81fb24f1c5374479d3af0930c140df0021221ae diff --git a/gdb/python/python.c b/gdb/python/python.c index fc1de8b9441..845abb3aa86 100644 --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -2434,10 +2434,10 @@ message == an error message without a stack will be printed."), add_setshow_boolean_cmd ("ignore-environment", no_class, &python_ignore_environment, _("\ -Set whether the Python interpreter should ignore environment variables."), _(" \ -Show whether the Python interpreter showlist ignore environment variables."), _(" \ -When enabled GDB's Python interpreter will ignore any Python related\n \ -flags in the environment. This is equivalent to passing `-E' to a\n \ +Set whether the Python interpreter should ignore environment variables."), _("\ +Show whether the Python interpreter showlist ignore environment variables."), _("\ +When enabled GDB's Python interpreter will ignore any Python related\n\ +flags in the environment. This is equivalent to passing `-E' to a\n\ python executable."), set_python_ignore_environment, show_python_ignore_environment,