[PATCH 7/7] gdb: startup commands to control Python extension language

Tom Tromey tom@tromey.com
Fri Apr 23 14:32:42 GMT 2021


>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

Andrew> gdb/ChangeLog:

Andrew> 	* NEWS: Mention new commands.
Andrew> 	* python/python.c (python_ignore_environment): New static global.
Andrew> 	(show_python_ignore_environment): New function.
Andrew> 	(set_python_ignore_environment): New function.
Andrew> 	(python_dont_write_bytecode): New static global.
Andrew> 	(show_python_dont_write_bytecode): New function.
Andrew> 	(set_python_dont_write_bytecode): New function.
Andrew> 	(_initialize_python): Register new commands.

I think this probably fixes PR python/22503.
Other than that it looks good.  Thanks for doing this.

Tom


More information about the Gdb-patches mailing list