Fix the "pylocals" gdb command.

This commit is contained in:
Georg Brandl 2009-07-23 09:17:09 +00:00
parent 0e66914907
commit beca49953d
1 changed files with 1 additions and 1 deletions

View File

@ -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))