public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] pr gdb/22882: fixing some thread related hangs
@ 2018-05-24 10:50 Andrew Burgess
  2018-05-24 10:50 ` [PATCH 4/4] gdb: After inferior call, finish all threads in process Andrew Burgess
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Andrew Burgess @ 2018-05-24 10:50 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andrew Burgess

This series sets out to address pr gdb/22882, GDB hangs when calling
inferior functions in different inferior threads when non-stop mode is
off, and scheduler-locking is on.

Patch #1 fixes some debug logging which I came across while trying to
understand this issue.

Patch #2 and #3 both fix pr gdb/22882.  Originally I'd planned to
present both patches and ask for guidance about which is the correct
approach.  However, having thought about it, I now think that both
patches are correct.  Hopefully the patch descriptions explain what
I'm trying to achieve in each.

Patch #4 is thread related, but not really related to the earlier
work.  It addresses an issue when an inferior call creates a new
thread.

---

Andrew Burgess (4):
  gdb: Fix an infrun debug log message
  gdb: Mark async event handler when event is already pending
  gdb: Run INF_EXEC_COMPLETE handler for additional cases
  gdb: After inferior call, finish all threads in process

 gdb/ChangeLog                                      | 23 ++++++
 gdb/infcall.c                                      |  2 +-
 gdb/infrun.c                                       | 24 +++---
 gdb/testsuite/ChangeLog                            | 12 +++
 gdb/testsuite/gdb.threads/infcall-create-thread.c  | 89 ++++++++++++++++++++++
 .../gdb.threads/infcall-create-thread.exp          | 71 +++++++++++++++++
 .../gdb.threads/multiple-successive-infcall.exp    | 15 +---
 7 files changed, 212 insertions(+), 24 deletions(-)
 create mode 100644 gdb/testsuite/gdb.threads/infcall-create-thread.c
 create mode 100644 gdb/testsuite/gdb.threads/infcall-create-thread.exp

-- 
2.14.3

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

end of thread, other threads:[~2018-06-11 18:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-24 10:50 [PATCH 0/4] pr gdb/22882: fixing some thread related hangs Andrew Burgess
2018-05-24 10:50 ` [PATCH 4/4] gdb: After inferior call, finish all threads in process Andrew Burgess
2018-06-11 18:13   ` Pedro Alves
2018-05-24 10:50 ` [PATCH 2/4] gdb: Mark async event handler when event is already pending Andrew Burgess
2018-06-11 17:55   ` Pedro Alves
2018-05-24 12:31 ` [PATCH 1/4] gdb: Fix an infrun debug log message Andrew Burgess
2018-06-11 17:53   ` Pedro Alves
2018-05-24 12:44 ` [PATCH 3/4] gdb: Run INF_EXEC_COMPLETE handler for additional cases Andrew Burgess
2018-06-11 18:02   ` Pedro Alves

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).