You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to track down a bug in Python 3.0 (or my program?). I fixed
some functions of gdbinit:
pystack and pylocals: use the new function py_printstr
lineno: call CPython "PyCode_Addr2Line" instead of ugly gdb
reimplementation
New functions:
py_decref: decrement the reference counter and *always* call
_Py_Dealloc(obj)
py_printstr: display a string as UTF-8 using printf "%s" and
PyUnicodeUCS2_AsUTF8String()
Problem: PyUnicode_AsUTF8String() is unknown, so I have to use
PyUnicodeUCS2_AsUTF8String... (but it can be UCS4)
I'm unable to test pylocals, I don't know the good context to test it.
In PyEval_EvalFrameEx if fails because "f" is unknown but pystack
works and pystack calls lineno which uses "f" !?
The gdbinit file for Python 3 is still broken. I've not been able to
figure out how to get a string encoded as utf-8 from a Unicode object
without needing a process around. If you require a process then
gdbinit becomes much less useful since it won't work with core files.
Activity
vstinner commentedon Aug 20, 2008
I'm trying to track down a bug in Python 3.0 (or my program?). I fixed
some functions of gdbinit:
reimplementation
New functions:
_Py_Dealloc(obj)
PyUnicodeUCS2_AsUTF8String()
Problem: PyUnicode_AsUTF8String() is unknown, so I have to use
PyUnicodeUCS2_AsUTF8String... (but it can be UCS4)
I'm unable to test pylocals, I don't know the good context to test it.
In PyEval_EvalFrameEx if fails because "f" is unknown but pystack
works and pystack calls lineno which uses "f" !?
nnorwitz commentedon Aug 24, 2008
I fixed some problems in r66016. This patch seems like it has other
things which might be useful, so I'll keep it open until it's handled.
vstinner commentedon Jan 29, 2009
The patch is now outdated.
smontanaro commentedon Jan 30, 2009
The gdbinit file for Python 3 is still broken. I've not been able to
figure out how to get a string encoded as utf-8 from a Unicode object
without needing a process around. If you require a process then
gdbinit becomes much less useful since it won't work with core files.