mirror of
https://github.com/python/cpython.git
synced 2025-10-07 07:31:46 +00:00
gh-89419: gdb: fix bug causing AttributeError
in py-locals when no frame is available (#100611)
This commit is contained in:
parent
8b1f125121
commit
8586949833
2 changed files with 2 additions and 0 deletions
|
@ -0,0 +1 @@
|
||||||
|
Fix a bug that caused an :exc:`AttributeError` to be raised in ``python-gdb.py`` when ``py-locals`` is used without a frame.
|
|
@ -2108,6 +2108,7 @@ class PyLocals(gdb.Command):
|
||||||
while True:
|
while True:
|
||||||
if not pyop_frame:
|
if not pyop_frame:
|
||||||
print(UNABLE_READ_INFO_PYTHON_FRAME)
|
print(UNABLE_READ_INFO_PYTHON_FRAME)
|
||||||
|
break
|
||||||
if pyop_frame.is_shim():
|
if pyop_frame.is_shim():
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue