Skip to content

Commit 8586949

Browse files
authored
gh-89419: gdb: fix bug causing AttributeError in py-locals when no frame is available (#100611)
1 parent 8b1f125 commit 8586949

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a bug that caused an :exc:`AttributeError` to be raised in ``python-gdb.py`` when ``py-locals`` is used without a frame.

Tools/gdb/libpython.py

+1
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,7 @@ def invoke(self, args, from_tty):
21082108
while True:
21092109
if not pyop_frame:
21102110
print(UNABLE_READ_INFO_PYTHON_FRAME)
2111+
break
21112112
if pyop_frame.is_shim():
21122113
break
21132114

0 commit comments

Comments
 (0)