gdb: startup commands to control Python extension language
[deliverable/binutils-gdb.git] / gdb / NEWS
index 1cdf19c09a01ad00a09e2ab3a31e330a876b0459..6550ea352ac53e57a69f7e1408efd44ce71b3f6d 100644 (file)
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -106,6 +106,22 @@ show print type hex
   When 'on', the 'ptype' command uses hexadecimal notation to print sizes
   and offsets of struct members.  When 'off', decimal notation is used.
 
+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
+  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.
+
 * Changed commands
 
 break [PROBE_MODIFIER] [LOCATION] [thread THREADNUM]
This page took 0.031869 seconds and 4 git commands to generate.