public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/7] amdgpu: handle fork and exec
@ 2023-04-03 18:52 Simon Marchi
  2023-04-03 18:52 ` [PATCH 1/7] gdb: pass execing and following inferior to inferior_execd observers Simon Marchi
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Simon Marchi @ 2023-04-03 18:52 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

This series adds support for fork and exec to the amdgpu port.  This
means making sure that the appropriate cleanups are done when an
inferior using the GPU forks and / or execs, and the appropriates
actions taken so that we can properly debug an inferior using the GPU
post-fork or post-exec.

Simon Marchi (7):
  gdb: pass execing and following inferior to inferior_execd observers
  gdb: add inferior_forked observable
  gdb: remove regcache::target
  gdb: add maybe_switch_inferior function
  gdb: make regcache::raw_update switch to right inferior
  gdb: switch to right inferior in fetch_inferior_event
  gdb/amdgpu: add follow fork and exec support

 gdb/amd-dbgapi-target.c                       | 39 ++++++++
 gdb/gdbthread.h                               |  2 +
 gdb/inferior.c                                | 15 ++++
 gdb/inferior.h                                |  7 ++
 gdb/infrun.c                                  | 53 ++++++-----
 gdb/jit.c                                     | 20 +++--
 gdb/linux-tdep.c                              | 10 ++-
 gdb/observable.c                              |  1 +
 gdb/observable.h                              | 17 +++-
 gdb/record-btrace.c                           |  3 +-
 gdb/regcache.c                                | 90 ++++++++++++-------
 gdb/regcache.h                                | 22 +++--
 gdb/solib.c                                   |  3 +-
 .../fork-exec-gpu-to-non-gpu-execee.cpp       | 27 ++++++
 .../fork-exec-gpu-to-non-gpu-execer.cpp       | 55 ++++++++++++
 .../gdb.rocm/fork-exec-gpu-to-non-gpu.exp     | 89 ++++++++++++++++++
 .../fork-exec-non-gpu-to-gpu-execee.cpp       | 36 ++++++++
 .../fork-exec-non-gpu-to-gpu-execer.cpp       | 46 ++++++++++
 .../gdb.rocm/fork-exec-non-gpu-to-gpu.exp     | 88 ++++++++++++++++++
 gdb/thread.c                                  | 14 +++
 20 files changed, 561 insertions(+), 76 deletions(-)
 create mode 100644 gdb/testsuite/gdb.rocm/fork-exec-gpu-to-non-gpu-execee.cpp
 create mode 100644 gdb/testsuite/gdb.rocm/fork-exec-gpu-to-non-gpu-execer.cpp
 create mode 100644 gdb/testsuite/gdb.rocm/fork-exec-gpu-to-non-gpu.exp
 create mode 100644 gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu-execee.cpp
 create mode 100644 gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu-execer.cpp
 create mode 100644 gdb/testsuite/gdb.rocm/fork-exec-non-gpu-to-gpu.exp

-- 
2.40.0


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

end of thread, other threads:[~2023-04-17 17:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-03 18:52 [PATCH 0/7] amdgpu: handle fork and exec Simon Marchi
2023-04-03 18:52 ` [PATCH 1/7] gdb: pass execing and following inferior to inferior_execd observers Simon Marchi
2023-04-03 18:52 ` [PATCH 2/7] gdb: add inferior_forked observable Simon Marchi
2023-04-03 18:52 ` [PATCH 3/7] gdb: remove regcache::target Simon Marchi
2023-04-03 18:52 ` [PATCH 4/7] gdb: add maybe_switch_inferior function Simon Marchi
2023-04-03 18:52 ` [PATCH 5/7] gdb: make regcache::raw_update switch to right inferior Simon Marchi
2023-04-03 18:52 ` [PATCH 6/7] gdb: switch to right inferior in fetch_inferior_event Simon Marchi
2023-04-03 18:52 ` [PATCH 7/7] gdb/amdgpu: add follow fork and exec support Simon Marchi
2023-04-13 15:54 ` [PATCH 0/7] amdgpu: handle fork and exec Simon Marchi
2023-04-17 17:57   ` Simon Marchi

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