Skip to content

Commit

Permalink
gh-89419: gdb: fix bug causing AttributeError in py-locals when no …
Browse files Browse the repository at this point in the history
…frame is available (#100611)
  • Loading branch information
eli-schwartz committed Jan 3, 2023
1 parent 8b1f125 commit 8586949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions Tools/gdb/libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8586949

Please sign in to comment.