diff options
author | Andrew Burgess <aburgess@redhat.com> | 2022-01-11 17:31:16 +0000 |
---|---|---|
committer | Andrew Burgess <aburgess@redhat.com> | 2022-01-13 10:13:16 +0000 |
commit | 993248f4439271d7d5d3b504b851043af7495c25 (patch) | |
tree | a9876640edb51cd02e4ff247bf7777cbfa3dd5a5 /gdb/gdbthread.h | |
parent | 1ffce3f87dc6e62d49b5aaa0bc29c6d4cfbc6db6 (diff) | |
download | gdb-993248f4439271d7d5d3b504b851043af7495c25.zip gdb-993248f4439271d7d5d3b504b851043af7495c25.tar.gz gdb-993248f4439271d7d5d3b504b851043af7495c25.tar.bz2 |
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.
Diffstat (limited to 'gdb/gdbthread.h')
-rw-r--r-- | gdb/gdbthread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h index 5350a42..9921dae 100644 --- a/gdb/gdbthread.h +++ b/gdb/gdbthread.h @@ -1003,4 +1003,8 @@ extern void thread_try_catch_cmd (thread_info *thr, const char *cmd, int from_tty, const qcs_flags &flags); +/* Return a string representation of STATE. */ + +extern const char *thread_state_string (enum thread_state state); + #endif /* GDBTHREAD_H */ |