From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by sourceware.org (Postfix) with ESMTPS id 5840D3952D8E for ; Thu, 29 Apr 2021 09:35:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 5840D3952D8E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embecosm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=andrew.burgess@embecosm.com Received: by mail-wm1-x32f.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so6233574wmn.2 for ; Thu, 29 Apr 2021 02:35:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=kxK2Kbhf2QB+jkQmaOpb50yA6SV8kFTcnz5dECFwFYY=; b=Ozb2s34TRAou/lQxBp0ydZ1TnSn4aql8ppvu9ARgoUatNrzOo+7ku2KrYAOu7mWVim AkE9jdo8D/Hq1EIlcdU/Xtq1HdkzZenZoNpV6FMc3DWk4dTPpRDqDronb+0lYS3S+W6g zfXgdnmq+DUfIj+fIXg4wcGz31lcIeoWyRUU6f0/RWCqx4gp3RUMMaLac1N8mjY9HCmN c6Ui+2ENUWfaeb/wvRwlpl0YnAhR30Oaaq7o1mj6HAekQ6qvWWPTIXapgwONWi/CFqMV Cas6imr2jfGMuaTDbNeD7h8OHhr215Sl40DuqkVLizhDd4B+YkjeoXySh6gM5anwgfL8 N/qQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=kxK2Kbhf2QB+jkQmaOpb50yA6SV8kFTcnz5dECFwFYY=; b=aN3K3irBx5lxO/lqGy+WkfMtZQCuquSjMIKfPiCJgEr4hGQARsL6Ao5tWfQLvKQHNC wIEq4s0BmteT0N7uWmdVBHynxhRRYjptTk0TY0UHF1KlLl6R9hu5NZY5P6q9SLLECkkw mq9ttqtqF8HCveH+UYJ+HEoML3vCPZhAPz54DwFMj3JgF1RvnYlfWEs+RRgFspqbxg3f ZcPZpO8q2Fwtx2lfzOF6MyOHx4PuoaGImq7fIKd5197jgMGAJXplIH1hQrlW7JvcFTLS XRpwKxoPwrj67ssqCBspCNx0SQ8e88iv+pDca4higyeZ2PJsg2+AKvuzxuMboyM4SF5F inJA== X-Gm-Message-State: AOAM532r4YNR8pmSbk1eSegUF0r9jPwH+scWojnYQCpDikA4kRhvIkX8 K9h+FmzU6O30lrDvR0OutWnVGg== X-Google-Smtp-Source: ABdhPJxf7dJalF1MZyzvl+yvgNET50KHdVBC/JjLca2hmoOD4V3ZLkUx6YRlvDBmUnI3D5ytr1z5UA== X-Received: by 2002:a1c:4482:: with SMTP id r124mr9287121wma.42.1619688909426; Thu, 29 Apr 2021 02:35:09 -0700 (PDT) Received: from localhost (host109-151-46-70.range109-151.btcentralplus.com. [109.151.46.70]) by smtp.gmail.com with ESMTPSA id 61sm4361397wrm.52.2021.04.29.02.35.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 02:35:08 -0700 (PDT) Date: Thu, 29 Apr 2021 10:35:07 +0100 From: Andrew Burgess To: Tom de Vries Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 7/7] gdb: startup commands to control Python extension language Message-ID: <20210429093507.GE2364578@embecosm.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux/5.8.18-100.fc31.x86_64 (x86_64) X-Uptime: 10:34:21 up 18 days, 20:21, X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2021 09:35:11 -0000 * Tom de Vries [2021-04-29 10:32:05 +0200]: > On 4/22/21 11:02 PM, Andrew Burgess wrote: > > +set python ignore-environment on|off > > +show python ignore-environment > > + When 'on', this causes GDB's builtin Python to ignore any > > + environment variables that would otherwise effect how Python > > affect? > > > + behaves. This command needs to be added to an early initialization > > + file (e.g. ~/.config/gdb/gdbearlyinit) in order to affect GDB. > > + > > +set python dont-write-bytecode auto|on|off > > +show python dont-write-bytecode > > + When 'on', this causes GDB's builtin Python to not write any > > + byte-code (.pyc files) to disk. This command needs to be added to > > + an early initialization file (e.g. ~/.config/gdb/gdbearlyinit) in > > + order to affect GDB. When 'off' byte-code will always be written. > > + When set to 'auto' (the default) Python will check the > > + PYTHONDONTWRITEBYTECODE. environment variable. > > Dot at end of variable name. Thanks for pointing out these two issues, I pushed the patch below as obvious to address them. Thanks, Andrew --- commit 8eb82ba1fdc052d2bb08ec6f0d98b8d2c10edd17 Author: Andrew Burgess Date: Thu Apr 29 10:29:41 2021 +0100 gdb/NEWS: Fix typo and stray full stop Some errors introduced in commit: commit edeaceda7b2f33b2c3bf78c732e67f3188e7f0b9 Date: Thu Aug 27 16:53:13 2020 +0100 gdb: startup commands to control Python extension language gdb/ChangeLog: * NEWS: Fix typo and stray full stop. diff --git a/gdb/NEWS b/gdb/NEWS index 6550ea352ac..19cb444e7fe 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -109,7 +109,7 @@ show print type hex set python ignore-environment on|off show python ignore-environment When 'on', this causes GDB's builtin Python to ignore any - environment variables that would otherwise effect how Python + environment variables that would otherwise affect how Python behaves. This command needs to be added to an early initialization file (e.g. ~/.config/gdb/gdbearlyinit) in order to affect GDB. @@ -120,7 +120,7 @@ show python dont-write-bytecode an early initialization file (e.g. ~/.config/gdb/gdbearlyinit) in order to affect GDB. When 'off' byte-code will always be written. When set to 'auto' (the default) Python will check the - PYTHONDONTWRITEBYTECODE. environment variable. + PYTHONDONTWRITEBYTECODE environment variable. * Changed commands