This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/4] pr gdb/22882: fixing some thread related hangs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]