gdb: add some extra debug information to attach_command
authorAndrew Burgess <aburgess@redhat.com>
Tue, 11 Jan 2022 17:31:16 +0000 (17:31 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Thu, 13 Jan 2022 10:13:16 +0000 (10:13 +0000)
commit993248f4439271d7d5d3b504b851043af7495c25
treea9876640edb51cd02e4ff247bf7777cbfa3dd5a5
parent1ffce3f87dc6e62d49b5aaa0bc29c6d4cfbc6db6
gdb: add some extra debug information to attach_command

While working on another patch I wanted to add some extra debug
information to the attach_command function.  This required me to add a
new function to convert the thread_info::state variable to a string.

The new debug might be useful to others, and the state to string
function might be useful in other locations, so I thought I'd merge
it.
gdb/gdbthread.h
gdb/infcmd.c
gdb/thread.c