diff options
author | Georg Brandl <georg@python.org> | 2009-07-23 09:17:09 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-07-23 09:17:09 +0000 |
commit | 0555e6d8a0ff19c38b3070a05569bd1880148590 (patch) | |
tree | 88e9a11a9a61bd14d1c478a21517dafe22cca273 | |
parent | f024796f65bf608b7806bbbca4b0590c0dc77d04 (diff) | |
download | cpython-0555e6d8a0ff19c38b3070a05569bd1880148590.tar.gz |
Fix the "pylocals" gdb command.
-rw-r--r-- | Misc/gdbinit | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/gdbinit b/Misc/gdbinit index e648f1647b..316ff3d525 100644 --- a/Misc/gdbinit +++ b/Misc/gdbinit @@ -29,7 +29,7 @@ end # 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)) |