[issue3610] Fix gdbinit for Python 3.0

2009-01-30 Thread Skip Montanaro

Skip Montanaro  added the comment:

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.

--
nosy: +skip.montanaro

___
Python tracker 

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



[issue3610] Fix gdbinit for Python 3.0

2009-01-29 Thread STINNER Victor

STINNER Victor  added the comment:

The patch is now outdated.

--
resolution:  -> out of date
status: open -> closed

___
Python tracker 

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



[issue3610] Fix gdbinit for Python 3.0

2008-08-24 Thread Neal Norwitz

Neal Norwitz <[EMAIL PROTECTED]> added the comment:

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.

--
nosy: +nnorwitz

___
Python tracker <[EMAIL PROTECTED]>

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



[issue3610] Fix gdbinit for Python 3.0

2008-08-19 Thread STINNER Victor

New submission from STINNER Victor <[EMAIL PROTECTED]>:

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

--
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 <[EMAIL PROTECTED]>

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