Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Update Tools/gdb/libpython.py
Co-authored-by: Victor Stinner <[email protected]>
  • Loading branch information
colesbury and vstinner authored Jan 7, 2026
commit 972ea0fdc1f98a6d2ffccc2db50a0bb583c1e212
3 changes: 2 additions & 1 deletion Tools/gdb/libpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,8 +1275,9 @@ def print_traceback_until_shim(self, frame_index = None):
if not interp_frame:
sys.stdout.write(' (unable to read python frame information)\n')
return None
elif interp_frame.is_shim():
if interp_frame.is_shim():
return interp_frame.previous()
Comment thread
colesbury marked this conversation as resolved.

if frame_index is not None:
line = interp_frame.get_truncated_repr(MAX_OUTPUT_LEN)
sys.stdout.write('#%i %s\n' % (frame_index, line))
Expand Down
Loading