From: Eli Zaretskii <eliz@gnu.org>
To: Tankut Baris Aktemur <tankutbaris.aktemur@amd.com>
Cc: gdb-patches@sourceware.org, lancelot.six@amd.com
Subject: Re: [PATCH v2] gdb/amd-dbgapi-target: implement the 'interrupt' target op
Date: Tue, 12 May 2026 21:03:31 +0300 [thread overview]
Message-ID: <86fr3wzerw.fsf@gnu.org> (raw)
In-Reply-To: <20260512173318.2727821-1-tankutbaris.aktemur@amd.com> (message from Tankut Baris Aktemur on Tue, 12 May 2026 12:33:18 -0500)
> From: Tankut Baris Aktemur <tankutbaris.aktemur@amd.com>
> CC: <lancelot.six@amd.com>, <eliz@gnu.org>
> Date: Tue, 12 May 2026 12:33:18 -0500
>
> In all-stop mode, an asynchronously-resumed AMD GPU thread cannot be
> stopped using the "interrupt" command, because in that case the
> interrupt request is simply passed to the target beneath (i.e. the
> native CPU target), which does nothing since all CPU threads are
> already stopped.
>
> Implement the 'interrupt' method of amd_dbgapi_target by using the
> 'stop' method. Also include a test.
>
> Approved-by: Lancelot Six <lancelot.six@amd.com> (amdgpu)
> ---
> gdb/amd-dbgapi-target.c | 7 +++
> gdb/doc/gdb.texinfo | 4 +-
> gdb/testsuite/gdb.rocm/interrupt-single.cpp | 43 ++++++++++++++++++
> gdb/testsuite/gdb.rocm/interrupt-single.exp | 48 +++++++++++++++++++++
> 4 files changed, 101 insertions(+), 1 deletion(-)
> create mode 100644 gdb/testsuite/gdb.rocm/interrupt-single.cpp
> create mode 100644 gdb/testsuite/gdb.rocm/interrupt-single.exp
Thanks.
> +@value{GDBN} process. Alternatively you can resume the @acronym{AMD GPU}
^^^^^^^^^^^^^^^^^
This should be 2 separate @acronym's.
> +thread in the background using @code{continue&} (@pxref{Background Execution})
> +and then use @code{interrupt} to stop the thread.
The documentation part is okay with this nit fixed.
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
next prev parent reply other threads:[~2026-05-12 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 17:33 Tankut Baris Aktemur
2026-05-12 18:03 ` Eli Zaretskii [this message]
2026-05-13 5:38 ` Aktemur, Baris
2026-05-13 11:21 ` Eli Zaretskii
2026-05-12 18:24 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86fr3wzerw.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
--cc=lancelot.six@amd.com \
--cc=tankutbaris.aktemur@amd.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox