[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread John Ehresman

John Ehresman added the comment:

I just ran into this again when I installed 2.7.10 -- evidently I had patched 
my local installation and forgot about it.  This is very important to anyone 
who tries to use the Visual Studio C debugger to debug extension modules.

--
nosy: +jpe

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +steve.dower

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
assignee: tarek - steve.dower
resolution:  - fixed
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2015-08-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 418095f0d711 by Steve Dower in branch '2.7':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/418095f0d711

New changeset 7c322c296a3b by Steve Dower in branch '3.4':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/7c322c296a3b

New changeset 6a1c2c7b0ee0 by Steve Dower in branch '3.5':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/6a1c2c7b0ee0

New changeset b35df92f69e4 by Steve Dower in branch 'default':
Issue #4214: Remove ineffectual /pdb:none option from msvc9compiler.py
https://hg.python.org/cpython/rev/b35df92f69e4

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2014-07-09 Thread Mark Lawrence

Mark Lawrence added the comment:

Patch is against default.  The entire distutils test suite ran okay.  Would 
someone like to try this in the real world please.

--
components:  -Distutils2
keywords: +patch
nosy: +BreamoreBoy, dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file35917/Issue4214.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for explaining.  Is someone willing to add a test in test_msvc9compiler?

--
nosy: +loewis

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

/pdb:None initially did *not* mean no debug information, but no pdb file, 
see

http://msdn.microsoft.com/en-us/library/aa278542(VS.60).aspx

Debug information would be embedded to the DLL.

Later versions of the VS documentation fail to mention None as a special 
value. Assuming it still has its original semantics, I fail to see the bug in 
this report.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Robin Dunn

Robin Dunn ro...@alldunn.com added the comment:

No, MSVC does not behave that way any longer.  Now it simply creates a file 
named None, so I expect that the newer versions simply do not support writing 
the old-style debug info written to the DLL or EXE. If a setup script creates 
more than one extension module then they all overwrite that None file.

In order to get debug info in a useable form, distutils simply can not use 
/pdb:None.  By removing that option entirely then debug info is generated like 
normal into a *.pdb file and using the debugger to trace through the extension 
module's code will happily work correctly.

I've had to have this hack in wxPython's setup.py since Python 2.6 to work 
around this problem:


# Yet another distutils hack, this time for the msvc9compiler.  There
# is a bug in at least version distributed with Python 2.6 where it
# adds '/pdb:None' to the linker command-line, but that just results
# in a 'None' file being created instead of putting the debug info
# into the .pyd files as expected.  So we'll strip out that option via
# a monkey-patch of the msvc9compiler.MSVCCompiler.initialize method.

if os.name == 'nt' and  sys.version_info = (2,6):
import distutils.msvc9compiler
_orig_initialize = distutils.msvc9compiler.MSVCCompiler.initialize

def _initialize(self, *args, **kw):
rv = _orig_initialize(self, *args, **kw)
try:
self.ldflags_shared_debug.remove('/pdb:None')
except ValueError:
pass
return rv

distutils.msvc9compiler.MSVCCompiler.initialize = _initialize

--
versions: +Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2010-11-29 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Ah ok, then removing the option sounds fine to me (not for 2.6, though).

--
versions:  -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2010-11-28 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

A .pdb is the program database that contain debug info, i.e. the mapping 
between assembler positions and source lines, the description of data 
structures, and other things that are necessary to debug a program.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2010-11-27 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

What are pdb files, by the way?

--
components: +Distutils2
nosy: +eric.araujo
versions: +3rd party, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2009-03-06 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

Since I am unfamiliar with MSVC, I will need to digg on this, so if
anyone can help on this : any idea on what would be the proper fix and
why ?

--
versions: +Python 2.7, Python 3.0, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2009-02-28 Thread Akira Kitada

Changes by Akira Kitada akit...@gmail.com:


--
assignee:  - tarek
components: +Windows
nosy: +tarek

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2008-10-27 Thread Robin Dunn

New submission from Robin Dunn [EMAIL PROTECTED]:

It looks like part of r59290 resulted in /pdb:None always being part of
the ldflags_shared_debug list.  This means that there will be no debug
info stored for extensions built in debug mode, which kinda negates the
purpose of doing a debug build.  

Looking back at the revision history and comparing similar code in
msvccompiler.py it looks like the /pdb:None was optionally added in the
first place because of compatibility issues with earlier compilers.  For
MSVC 7 and 9 I think it should be fine to simply remove /pdb:None from
that list.  My ad hoc testing so far has not revealed any problems with
making this change.

--
components: Distutils
messages: 75264
nosy: robind
severity: normal
status: open
title: no extension debug info with msvc9compiler.py
type: compile error
versions: Python 2.6

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4214] no extension debug info with msvc9compiler.py

2008-10-27 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:

Furthermore, /PDB:None is no more supported by VC2008 express.
You end up with files named None...

--
nosy: +amaury.forgeotdarc

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4214
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com