summaryrefslogtreecommitdiff
path: root/Misc/gdbinit
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-07-23 09:19:09 +0000
committerGeorg Brandl <georg@python.org>2009-07-23 09:19:09 +0000
commit9b21dbc1077b450ce5fa434c8c71f20cdb3393aa (patch)
tree5127dae9c05bbad5c57d61a22632cda36189b470 /Misc/gdbinit
parentb27a1d29d2ea4006d3adcce84f8e4026c673e121 (diff)
downloadcpython-git-9b21dbc1077b450ce5fa434c8c71f20cdb3393aa.tar.gz
Recorded merge of revisions 74185 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line Fix the "pylocals" gdb command. ........
Diffstat (limited to 'Misc/gdbinit')
-rw-r--r--Misc/gdbinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/gdbinit b/Misc/gdbinit
index 74ddbec363..33de7846a7 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 = _PyUnicode_AsString(PyTuple_GetItem($_names, $_i))