[issue19308] Tools/gdb/libpython.py does not support GDB linked against Python 3

David Coles report at bugs.python.org
Mon Oct 21 09:26:22 CEST 2013


David Coles added the comment:

And here's the patch for Python 2.7.

The result of testing is as follows:
- python (default) against py2-linked gdb: All tests pass
- python (2.7) against py2-linked gdb: `test_long` fails.
- python (default) against py3-linked gdb: All tests pass
- python (2.7) against py3-linked gdb: `test_long`, `test_strings` and `test_unicode` fail.

`test_long` has been removed from the default branch, in addition gdb doesn't seem to distinguish printing 0 from 0L. `test_strings` likely fails since Python 3 will print printable unicode characters (like "\xff") while Python 2 will not. `test_unicode` likely fails due to the 'u' prefix on unicode strings in Python 2. This kind of behavior is pretty much expected when cross-testing gdb.

----------
Added file: http://bugs.python.org/file32273/python27-gdb_py3.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19308>
_______________________________________


More information about the Python-bugs-list mailing list