diff options
author | Oleksiy Vyalov <ovyalov@google.com> | 2016-04-08 20:44:28 +0000 |
---|---|---|
committer | Oleksiy Vyalov <ovyalov@google.com> | 2016-04-08 20:44:28 +0000 |
commit | bdea8dd57f7c733c8c305a4c54b39e0ccf166fc2 (patch) | |
tree | 77d57e61cb34d9bb50139f8ca50723d7ae7ab252 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | |
parent | 3232dbbf02bc989c872ad9ad6856e7a28592f5b4 (diff) | |
download | bcm5719-llvm-bdea8dd57f7c733c8c305a4c54b39e0ccf166fc2.tar.gz bcm5719-llvm-bdea8dd57f7c733c8c305a4c54b39e0ccf166fc2.zip |
Reset continue_after_async only if neither SIGINIT nor SIGSTOP received.
http://reviews.llvm.org/D18886
llvm-svn: 265843
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp index f674d298709..1a109307b88 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp @@ -1165,12 +1165,13 @@ GDBRemoteCommunicationClient::SendContinuePacketAndWaitForResponse // binaries that would send two stop replies anytime the process // was interrupted, so we need to also check for an extra // stop reply packet if we interrupted the process - if (m_interrupt_sent || (signo != sigint_signo && signo != sigstop_signo)) + const bool received_nonstop_signal = signo != sigint_signo && signo != sigstop_signo; + if (m_interrupt_sent || received_nonstop_signal) { - continue_after_async = false; + if (received_nonstop_signal) + continue_after_async = false; - // We didn't get a SIGINT or SIGSTOP, so try for a - // very brief time (0.1s) to get another stop reply + // Try for a very brief time (0.1s) to get another stop reply // packet to make sure it doesn't get in the way StringExtractorGDBRemote extra_stop_reply_packet; uint32_t timeout_usec = 100000; |