[New-bugs-announce] [issue3610] Fix gdbinit for Python 3.0

STINNER Victor report at bugs.python.org
Wed Aug 20 03:08:18 CEST 2008

New submission from STINNER Victor <haypo at users.sourceforge.net>:

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 

New functions:
 - py_decref: decrement the reference counter and *always* call 
 - py_printstr: display a string as UTF-8 using printf "%s" and 

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" !?

components: None
files: gdbinit.patch
keywords: patch
messages: 71501
nosy: haypo
severity: normal
status: open
title: Fix gdbinit for Python 3.0
type: feature request
versions: Python 3.0
Added file: http://bugs.python.org/file11167/gdbinit.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list