gdb/python: implement __repr__ methods for py-disasm.c types
authorAndrew Burgess <aburgess@redhat.com>
Tue, 24 Jan 2023 15:03:25 +0000 (15:03 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 12 May 2023 17:24:24 +0000 (18:24 +0100)
commit15ccb5e393f7c4032a8ee005a8183830a9c6accb
treea24c69e9112e808c3bafa7d9bdf35b6829034fc3
parent773e2d29c3a3c0f068b188a2a93c269cdfb237ad
gdb/python: implement __repr__ methods for py-disasm.c types

Add a __repr__ method for the DisassembleInfo and DisassemblerResult
types, and add some tests for these new methods.
gdb/python/py-disasm.c
gdb/testsuite/gdb.python/py-disasm.exp
gdb/testsuite/gdb.python/py-disasm.py