gdb/python: add __repr__ for PendingFrame and UnwindInfo
authorAndrew Burgess <aburgess@redhat.com>
Fri, 10 Mar 2023 10:19:58 +0000 (10:19 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 30 Mar 2023 09:25:46 +0000 (10:25 +0100)
commit7e6af18d0c7df5d1ee6144ef0e09b32db3a347e7
tree3b767b5ffed5469d25531261cb25de45f4842b04
parent86b35b7116a325ae0179e5b74692e4e7a1e8b2d7
gdb/python: add __repr__ for PendingFrame and UnwindInfo

Having a useful __repr__ method can make debugging Python code that
little bit easier.  This commit adds __repr__ for gdb.PendingFrame and
gdb.UnwindInfo classes, along with some tests.

Reviewed-By: Tom Tromey <tom@tromey.com>
gdb/python/py-unwind.c
gdb/testsuite/gdb.python/py-unwind.exp
gdb/testsuite/gdb.python/py-unwind.py