gdb/python: implement DisassemblerResult.__str__ method
authorAndrew Burgess <aburgess@redhat.com>
Tue, 24 Jan 2023 15:12:34 +0000 (15:12 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Fri, 12 May 2023 17:24:24 +0000 (18:24 +0100)
commit6a667807390b7091b5ec088d979c779f65d3dfa5
tree46e7b61bd054ee66836a41b01a66127d3727270b
parent15ccb5e393f7c4032a8ee005a8183830a9c6accb
gdb/python: implement DisassemblerResult.__str__ method

Add the DisassemblerResult.__str__ method.  This gives the same result
as the DisassemblerResult.string attribute, but can be useful
sometimes depending on how the user is trying to print the object.

There's a test for the new functionality.
gdb/python/py-disasm.c
gdb/testsuite/gdb.python/py-disasm.exp
gdb/testsuite/gdb.python/py-disasm.py