diff options
author | Georg Brandl <georg@python.org> | 2009-07-23 09:17:09 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-07-23 09:17:09 (GMT) |
commit | beca49953d7e184284fbd8e8123fff74cbed3e3e (patch) | |
tree | c050e13ab53d0ed6488241b7dab50508d24a88b7 | |
parent | 0e66914907413af366c74f01af81dcb8adb13929 (diff) | |
download | cpython-beca49953d7e184284fbd8e8123fff74cbed3e3e.zip cpython-beca49953d7e184284fbd8e8123fff74cbed3e3e.tar.gz cpython-beca49953d7e184284fbd8e8123fff74cbed3e3e.tar.bz2 |
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 e648f16..316ff3d 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)) |