public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Missing thread events for remote targets
@ 2023-10-11 12:53 Andrew Burgess
  2023-10-11 12:53 ` [PATCH 1/2] gdb: call update_thread_list for $_inferior_thread_count function Andrew Burgess
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Burgess @ 2023-10-11 12:53 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

I noticed that in some situations we are missing thread events ('new
thead' and 'thread exited') when using a remote target.  The second
patch in this series addresses this issue.

While writing the test for this case I discovered that
$_inferior_thread_count doesn't always give the correct value when
using remote targets, so the first patch addresses this issue.

---

Andrew Burgess (2):
  gdb: call update_thread_list for $_inferior_thread_count function
  gdb: call update_thread_list after completing an inferior call

 gdb/infcall.c                                 |   7 +
 gdb/testsuite/gdb.threads/inf-thr-count.c     |  80 ++++++++
 gdb/testsuite/gdb.threads/inf-thr-count.exp   | 175 ++++++++++++++++
 .../gdb.threads/infcall-thread-announce.c     | 192 ++++++++++++++++++
 .../gdb.threads/infcall-thread-announce.exp   |  71 +++++++
 gdb/thread.c                                  |   2 +
 6 files changed, 527 insertions(+)
 create mode 100644 gdb/testsuite/gdb.threads/inf-thr-count.c
 create mode 100644 gdb/testsuite/gdb.threads/inf-thr-count.exp
 create mode 100644 gdb/testsuite/gdb.threads/infcall-thread-announce.c
 create mode 100644 gdb/testsuite/gdb.threads/infcall-thread-announce.exp


base-commit: f6ca448ab70c52e923b7010aecdf7be9c0d4d4fc
-- 
2.25.4


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-08 13:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-11 12:53 [PATCH 0/2] Missing thread events for remote targets Andrew Burgess
2023-10-11 12:53 ` [PATCH 1/2] gdb: call update_thread_list for $_inferior_thread_count function Andrew Burgess
2023-10-11 12:53 ` [PATCH 2/2] gdb: call update_thread_list after completing an inferior call Andrew Burgess
2023-11-08 13:30 ` [PATCH 0/2] Missing thread events for remote targets Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).