This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug corefiles/15810] gdb 7.3.1/7.5 unlinks and creates .pyc-files in non-user directories
- From: "kdevel at vogtner dot de" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 02 Aug 2013 18:16:26 +0000
- Subject: [Bug corefiles/15810] gdb 7.3.1/7.5 unlinks and creates .pyc-files in non-user directories
- Auto-submitted: auto-generated
- References: <bug-15810-4717 at http dot sourceware dot org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=15810
--- Comment #4 from Stefan <kdevel at vogtner dot de> ---
(In reply to Tom Tromey from comment #3)
> My point is that this is a generic problem with Python.
I doubt that python considers its own documented behavior [1] as problem. The
problem stems from the integration of python into gdb.
> I don't think any of your proposed solutions are realistic.
This fixes the issue:
gdb/python/python.c:
1230 setenv ("PYTHONDONTWRITEBYTECODE", "1", 1);
1231 Py_Initialize ();
1232 PyEval_InitThreads ();
[1] http://docs.python.org/2/tutorial/modules.html#compiled-python-files
--
You are receiving this mail because:
You are on the CC list for the bug.