Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue3610] Fix gdbinit for Python 3.0

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Aug 19, 2008, 6:08 PM

Post #1 of 2 (72 views)
Permalink
[issue3610] Fix gdbinit for Python 3.0

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
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 <report[at]bugs.python.org>
<http://bugs.python.org/issue3610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Aug 24, 2008, 2:01 PM

Post #2 of 2 (50 views)
Permalink
[issue3610] Fix gdbinit for Python 3.0 [In reply to]

Neal Norwitz <nnorwitz[at]gmail.com> 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 <report[at]bugs.python.org>
<http://bugs.python.org/issue3610>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.