[PATCH v5 3/5] gdb/remote: do not delete a thread if it has a pending event
Tankut Baris Aktemur
tankut.baris.aktemur@intel.com
Mon Apr 6 15:45:49 GMT 2020
gdb/ChangeLog:
2020-04-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
* remote.c (remote_target::update_thread_list): Do not delete
a thread if it has a pending event.
---
gdb/remote.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gdb/remote.c b/gdb/remote.c
index bfbc0bc21d3..12ac7cb9862 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3821,6 +3821,9 @@ remote_target::update_thread_list ()
if (tp->inf->process_target () != this)
continue;
+ if (tp->suspend.waitstatus_pending_p)
+ continue;
+
if (!context.contains_thread (tp->ptid))
{
/* Not found. */
--
2.17.1
More information about the Gdb-patches
mailing list