Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b21dbc

Browse files
committed
Recorded merge of revisions 74185 via svnmerge from
svn+ssh://[email protected]/python/trunk ........ r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line Fix the "pylocals" gdb command. ........
1 parent b27a1d2 commit 9b21dbc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Misc/gdbinit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ end
2929
# print the local variables of the current frame
3030
define pylocals
3131
set $_i = 0
32-
while $_i < f->f_nlocals
32+
while $_i < f->f_code->co_nlocals
3333
if f->f_localsplus + $_i != 0
3434
set $_names = co->co_varnames
3535
set $_name = _PyUnicode_AsString(PyTuple_GetItem($_names, $_i))

0 commit comments

Comments
 (0)