Package: python2.5-dev Version: 2.5.4-3 Severity: minor File: /usr/share/doc/python2.5/gdbinit
In the python2.5-dev package, /usr/share/doc/python2.5/gdbinit is a GNU Debugger script that defines various commands for debugging Python. One of those commands is "pylocals", which is supposed to display the local variables of the Python frame that is being evaluated in PyEval_EvalFrameEx. The command reads the parameter PyFrameObject *f from the C stack and then attempts to loop over the Python local variables that *f describes. The command does not work because it tries to read f->f_nlocals and PyFrameObject has no such member. I guess from the comments that (f->f_valuestack - f->f_localsplus) should be used instead. That gave reasonable-looking results when I tried it, but I haven't really verified that it's right. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (900, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores) Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python2.5-dev depends on: ii python2.5 2.5.4-3 An interactive high-level object-o Versions of packages python2.5-dev recommends: ii gcc 4:4.3.4-2 The GNU C compiler ii libc6-dev [libc-dev] 2.10.2-2 GNU C Library: Development Librari python2.5-dev suggests no packages. -- no debconf information
pgp4kZp6Zmizr.pgp
Description: PGP signature

