mirror of https://github.com/python/cpython.git
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
|
@ -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 @@ def invoke(self, args, from_tty):
|
|||
while True:
|
||||
if not pyop_frame:
|
||||
print(UNABLE_READ_INFO_PYTHON_FRAME)
|
||||
break
|
||||
if pyop_frame.is_shim():
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in New Issue