From beca49953d7e184284fbd8e8123fff74cbed3e3e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Thu, 23 Jul 2009 09:17:09 +0000 Subject: [PATCH] Fix the "pylocals" gdb command. --- Misc/gdbinit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/gdbinit b/Misc/gdbinit index e648f1647bc..316ff3d525c 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))