public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix debugging multi inferiors using the ROCm runtime
@ 2023-06-30 14:57 Lancelot Six
  2023-06-30 14:57 ` [PATCH 1/2] gdb/testsuite/rocm: Add the hip_devices_support_debug_multi_process proc Lancelot Six
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Lancelot Six @ 2023-06-30 14:57 UTC (permalink / raw)
  To: gdb-patches; +Cc: lsix, Lancelot Six

Hi,

This series fixes an issue seen when debugging multiple inferiors which
use AMDGPU devices.  This problem appears on systems using GPUs capable
of debugging multiple processes simultaneously.

The first patch adds a helper method for the testsuite which checks if
all devices on the system support multi-process debugging.  The second
patch fixes the multi inferior issue and adds a testcase to exercise the
problem.

All feedbacks are welcome.

Best,
Lancelot.

Lancelot Six (2):
  gdb/testsuite/rocm: Add the hip_devices_support_debug_multi_process
    proc
  gdb/amdgpu: Fix debugging multiple inferiors using the ROCm runtime

 gdb/amd-dbgapi-target.c                       |   6 +-
 gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp | 111 ++++++++++++++++++
 gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp |  86 ++++++++++++++
 gdb/testsuite/lib/rocm.exp                    |  20 ++++
 4 files changed, 221 insertions(+), 2 deletions(-)
 create mode 100644 gdb/testsuite/gdb.rocm/multi-inferior-gpu.cpp
 create mode 100644 gdb/testsuite/gdb.rocm/multi-inferior-gpu.exp


base-commit: 69933be89fe5002d2d541ecf2145d5ccac19bbac
-- 
2.34.1


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

end of thread, other threads:[~2023-07-28 18:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-30 14:57 [PATCH 0/2] Fix debugging multi inferiors using the ROCm runtime Lancelot Six
2023-06-30 14:57 ` [PATCH 1/2] gdb/testsuite/rocm: Add the hip_devices_support_debug_multi_process proc Lancelot Six
2023-07-28 18:00   ` Pedro Alves
2023-06-30 14:57 ` [PATCH 2/2] gdb/amdgpu: Fix debugging multiple inferiors using the ROCm runtime Lancelot Six
2023-07-28 18:01   ` Pedro Alves
2023-07-28 18:04     ` Pedro Alves
2023-07-28 16:47 ` [PING] [PATCH 0/2] Fix debugging multi " Lancelot SIX

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