aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib/unbuffer_output.c
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2024-01-04 10:01:24 +0000
committerAndrew Burgess <aburgess@redhat.com>2024-01-12 11:21:26 +0000
commit1925bba80edd37c2ef90ef1d2c599dfc2fc17f72 (patch)
tree5cef675497c10a2693c11c5997cab71195baa94f /gdb/testsuite/lib/unbuffer_output.c
parentaef117b7374053099099600ded2f4eaa2c450327 (diff)
downloadbinutils-1925bba80edd37c2ef90ef1d2c599dfc2fc17f72.zip
binutils-1925bba80edd37c2ef90ef1d2c599dfc2fc17f72.tar.gz
binutils-1925bba80edd37c2ef90ef1d2c599dfc2fc17f72.tar.bz2
gdb/python: add gdb.InferiorThread.__repr__() method
Add a gdb.InferiorThread.__repr__() method. Before this patch we would see output like this: (gdb) pi >>> gdb.selected_thread() <gdb.InferiorThread object at 0x7f4dcc49b970> After this patch, we now see: (gdb) pi >>> gdb.selected_thread() <gdb.InferiorThread id=1.2 target-id="Thread 0x7ffff7da1700 (LWP 458134)"> More verbose, but, I hope, more useful. If the gdb.InferiorThread becomes invalid, then we will see: (gdb) pi >>> invalid_thread_variable <gdb.InferiorThread (invalid)> Which is inline with how other invalid objects are displayed. Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/testsuite/lib/unbuffer_output.c')
0 files changed, 0 insertions, 0 deletions