[Python-checkins] r74185 - python/trunk/Misc/gdbinit
georg.brandl
python-checkins at python.org
Thu Jul 23 11:17:09 CEST 2009
Author: georg.brandl
Date: Thu Jul 23 11:17:09 2009
New Revision: 74185
Log:
Fix the "pylocals" gdb command.
Modified:
python/trunk/Misc/gdbinit
Modified: python/trunk/Misc/gdbinit
==============================================================================
--- python/trunk/Misc/gdbinit (original)
+++ python/trunk/Misc/gdbinit Thu Jul 23 11:17:09 2009
@@ -29,7 +29,7 @@
# print the local variables of the current frame
define pylocals
set $_i = 0
- while $_i < f->f_nlocals
+ while $_i < f->f_code->co_nlocals
if f->f_localsplus + $_i != 0
set $_names = co->co_varnames
set $_name = PyString_AsString(PyTuple_GetItem($_names, $_i))
More information about the Python-checkins
mailing list