diff options
author | Pedro Alves <palves@redhat.com> | 2015-08-07 17:23:56 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-08-07 17:23:56 +0100 |
commit | 567420d10895611e03d5ee65e6b24c16a69a6e99 (patch) | |
tree | b4c7c3195515ddb92fd249d1e6ae1ccd09379a1c /gdb/ChangeLog | |
parent | d8dd4d5fe6d5ab971b731df5f65025a0dbbdb912 (diff) | |
download | fsf-binutils-gdb-567420d10895611e03d5ee65e6b24c16a69a6e99.zip fsf-binutils-gdb-567420d10895611e03d5ee65e6b24c16a69a6e99.tar.gz fsf-binutils-gdb-567420d10895611e03d5ee65e6b24c16a69a6e99.tar.bz2 |
remote.c/all-stop: Implement TARGET_WAITKIND_NO_RESUMED and TARGET_WNOHANG
Even though "target remote" supports target-async, the all-stop
target_wait implementation ignores TARGET_WNOHANG. If the core
happens to poll for events and we've already read the stop reply out
of the serial/socket, remote_wait_as hangs forever instead of
returning an indication that there are no events to process. This
can't happen currently, but later changes will trigger this.
gdb/ChangeLog:
2015-08-07 Pedro Alves <palves@redhat.com>
* remote.c (remote_wait_as): If not waiting for a stop reply,
return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
requested, don't block waiting forever.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7bec9c8..5bf3d75 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-08-07 Pedro Alves <palves@redhat.com> + + * remote.c (remote_wait_as): If not waiting for a stop reply, + return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is + requested, don't block waiting forever. + 2015-08-07 Pedro Alves <pedro@codesourcery.com> * infrun.c (adjust_pc_after_break): Now takes thread_info and |