public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v3 00/14] FreeBSD target async mode and related refactoring
@ 2021-11-27  1:14 John Baldwin
  2021-11-27  1:14 ` [PATCH v3 01/14] gdbsupport: Add an event-pipe class John Baldwin
                   ` (13 more replies)
  0 siblings, 14 replies; 16+ messages in thread
From: John Baldwin @ 2021-11-27  1:14 UTC (permalink / raw)
  To: gdb-patches

Changes since V2:

- Rebased for recent changes (waitkind setters from Simon
  and can_async_p changes from Andrew)

- Fixes based on feedback from V2.

- Patch 5 is new and is basically the same as patch 4 but for
  the record targets based on the same logic for patch 4.

John Baldwin (14):
  gdbsupport: Add an event-pipe class.
  gdb linux-nat: Convert linux_nat_event_pipe to the event_pipe class.
  gdbserver linux-low: Convert linux_event_pipe to the event_pipe class.
  linux-nat: Don't enable async mode at the end of
    linux_nat_target::resume.
  record: Don't enable async mode at the end of resume target methods.
  do_target_wait_1: Clear TARGET_WNOHANG if the target isn't async.
  inf-ptrace: Raise an error if waitpid() fails.
  inf-ptrace: Support async targets in inf_ptrace_target::wait.
  fbsd-nat: Implement async target support.
  fbsd-nat: Include ptrace operation in error messages.
  fbsd-nat: Various cleanups to the ::resume entry debug message.
  fbsd-nat: Return nullptr rather than failing ::thread_name.
  Enable async mode in the target in attach_cmd.
  inf-ptrace: Add an event_pipe to be used for async mode in subclasses.

 gdb/fbsd-nat.c           | 150 ++++++++++++++++++++++++++++++-----
 gdb/fbsd-nat.h           |   6 ++
 gdb/inf-ptrace.c         |  49 +++++++++---
 gdb/inf-ptrace.h         |  30 +++++++
 gdb/infcmd.c             |   4 +
 gdb/infrun.c             |   2 +-
 gdb/linux-nat.c          | 164 +++++++--------------------------------
 gdb/linux-nat.h          |   4 -
 gdb/record-full.c        |  10 ---
 gdb/remote.c             |   3 -
 gdbserver/linux-low.cc   |  43 +++-------
 gdbsupport/Makefile.am   |   5 ++
 gdbsupport/Makefile.in   |   9 ++-
 gdbsupport/configure     |  15 ++++
 gdbsupport/configure.ac  |   3 +
 gdbsupport/event-pipe.cc | 101 ++++++++++++++++++++++++
 gdbsupport/event-pipe.h  |  60 ++++++++++++++
 17 files changed, 440 insertions(+), 218 deletions(-)
 create mode 100644 gdbsupport/event-pipe.cc
 create mode 100644 gdbsupport/event-pipe.h

-- 
2.33.0


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

end of thread, other threads:[~2022-01-14 16:19 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-27  1:14 [PATCH v3 00/14] FreeBSD target async mode and related refactoring John Baldwin
2021-11-27  1:14 ` [PATCH v3 01/14] gdbsupport: Add an event-pipe class John Baldwin
2022-01-14 16:19   ` Tom Tromey
2021-11-27  1:14 ` [PATCH v3 02/14] gdb linux-nat: Convert linux_nat_event_pipe to the event_pipe class John Baldwin
2021-11-27  1:14 ` [PATCH v3 03/14] gdbserver linux-low: Convert linux_event_pipe " John Baldwin
2021-11-27  1:14 ` [PATCH v3 04/14] linux-nat: Don't enable async mode at the end of linux_nat_target::resume John Baldwin
2021-11-27  1:14 ` [PATCH v3 05/14] record: Don't enable async mode at the end of resume target methods John Baldwin
2021-11-27  1:14 ` [PATCH v3 06/14] do_target_wait_1: Clear TARGET_WNOHANG if the target isn't async John Baldwin
2021-11-27  1:14 ` [PATCH v3 07/14] inf-ptrace: Raise an error if waitpid() fails John Baldwin
2021-11-27  1:14 ` [PATCH v3 08/14] inf-ptrace: Support async targets in inf_ptrace_target::wait John Baldwin
2021-11-27  1:14 ` [PATCH v3 09/14] fbsd-nat: Implement async target support John Baldwin
2021-11-27  1:14 ` [PATCH v3 10/14] fbsd-nat: Include ptrace operation in error messages John Baldwin
2021-11-27  1:14 ` [PATCH v3 11/14] fbsd-nat: Various cleanups to the ::resume entry debug message John Baldwin
2021-11-27  1:14 ` [PATCH v3 12/14] fbsd-nat: Return nullptr rather than failing ::thread_name John Baldwin
2021-11-27  1:14 ` [PATCH v3 13/14] Enable async mode in the target in attach_cmd John Baldwin
2021-11-27  1:14 ` [PATCH v3 14/14] inf-ptrace: Add an event_pipe to be used for async mode in subclasses John Baldwin

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