STINNER Victor added the comment: I tried Python 3.6 with "./configure --with-pydebug --without-pymalloc --with-valgrind". The py-bt commands works as expect in gdb.
Can you try to modify python-gdb.py to get a traceback of your Invalid cast error? > I am able to fix it with the following commands: > (...) _type_char_ptr = gdb.lookup_type('char').pointer() # char* These defines are already in Tools/gdb/libpython.py (python-gdb.py is just a copy). I don't understand why you have to redeclare these variables again. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26799> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com