diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-06-04 14:31:33 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2021-06-04 17:19:28 +0100 |
commit | 4351271e9c98553900f6ae3cbcaaa75198909daa (patch) | |
tree | 953b9055ed6c8e1ad8432cfab2d393fb57be56ad /gdb | |
parent | a53755664f5f904aefd0d0b87e12f9adb6b69129 (diff) | |
download | fsf-binutils-gdb-4351271e9c98553900f6ae3cbcaaa75198909daa.zip fsf-binutils-gdb-4351271e9c98553900f6ae3cbcaaa75198909daa.tar.gz fsf-binutils-gdb-4351271e9c98553900f6ae3cbcaaa75198909daa.tar.bz2 |
gdb: add some additional debug output in remote.c
I needed more debug output from:
remote_target::select_thread_for_ambiguous_stop_reply
I thought this would be useful for others too.
gdb/ChangeLog:
* remote.c (remote_target)
<select_thread_for_ambiguous_stop_reply>: Add additional debug
output.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote.c | 8 |
2 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 875d8b7..99e935a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2021-06-04 Andrew Burgess <andrew.burgess@embecosm.com> + + * remote.c (remote_target) + <select_thread_for_ambiguous_stop_reply>: Add additional debug + output. + 2021-06-04 Hannes Domani <ssbssa@yahoo.de> * python/py-tui.c (class tui_py_window): Add click function. diff --git a/gdb/remote.c b/gdb/remote.c index 9b465d7..de04aab 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -7934,12 +7934,16 @@ ptid_t remote_target::select_thread_for_ambiguous_stop_reply (const struct target_waitstatus *status) { + REMOTE_SCOPED_DEBUG_ENTER_EXIT; + /* Some stop events apply to all threads in an inferior, while others only apply to a single thread. */ bool process_wide_stop = (status->kind == TARGET_WAITKIND_EXITED || status->kind == TARGET_WAITKIND_SIGNALLED); + remote_debug_printf ("process_wide_stop = %d", process_wide_stop); + thread_info *first_resumed_thread = nullptr; bool ambiguous = false; @@ -7959,6 +7963,10 @@ remote_target::select_thread_for_ambiguous_stop_reply ambiguous = true; } + remote_debug_printf ("first resumed thread is %s", + pid_to_str (first_resumed_thread->ptid).c_str ()); + remote_debug_printf ("is this guess ambiguous? = %d", ambiguous); + gdb_assert (first_resumed_thread != nullptr); /* Warn if the remote target is sending ambiguous stop replies. */ |