From: Simon Marchi <simark@simark.ca>
To: Lancelot SIX <lancelot.six@amd.com>,
Simon Marchi <simon.marchi@efficios.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 5/5] gdb/amd-dbgapi: disable forward progress requirement in amd_dbgapi_target_breakpoint::check_status
Date: Mon, 9 Jun 2025 11:59:59 -0400 [thread overview]
Message-ID: <b5cc7cb6-e5cc-47e9-93a5-6fce8e54fac9@simark.ca> (raw)
In-Reply-To: <666t5msvuyylv2yioapk56jqvjbsxsc7spkf473uu6pfguytfe@hvn54ws4ctzp>
>> diff --git a/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp
>> new file mode 100644
>> index 000000000000..e97809335569
>> --- /dev/null
>> +++ b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.cpp
>> @@ -0,0 +1,70 @@
>
> I think you are missing the copyright header for this file.
Done.
>> +#ifdef DEVICE
>> +
>> +#include <hip/hip_runtime.h>
>> +
>> +constexpr unsigned int NUM_BREAKPOINT_HITS = 5;
>> +
>> +static __device__ void
>> +break_here ()
>> +{
>> + asm ("s_nop 0");
>
> I don't expect this inline asssembly is necessary.
Ok, will remove it. Not sure why I added it, I might have had some
trouble with empty functions in the past.
>> diff --git a/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp
>> new file mode 100644
>> index 000000000000..b8d003f37032
>> --- /dev/null
>> +++ b/gdb/testsuite/gdb.rocm/code-object-load-while-breakpoint-hit.exp
>> @@ -0,0 +1,68 @@
>> +# Copyright (C) 2025 Advanced Micro Devices, Inc. All rights reserved.
>
> The copyright should be to the FSF, not AMD.
Done.
> Given the elements above are fixed,
>
> Approved-by: Lancelot Six <lancelot.six@amd.com> (amdgpu)
Thanks,
Simon
next prev parent reply other threads:[~2025-06-09 16:00 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-05 20:16 [PATCH 1/5] gdb/amd-dbgapi: remove unnecessary AMD_DBGAPI_EVENT_KIND_NONE argument Simon Marchi
2025-06-05 20:16 ` [PATCH 2/5] gdb/amd-dbgapi: add assert in require_forward_progress Simon Marchi
2025-06-06 10:06 ` Lancelot SIX
2025-06-05 20:16 ` [PATCH 3/5] gdb/amd-dbgapi: pass amd_dbgapi_inferior_info to process_event_queue Simon Marchi
2025-06-06 11:00 ` Lancelot SIX
2025-06-09 15:36 ` Simon Marchi
2025-06-05 20:16 ` [PATCH 4/5] gdb/amd-dbgapi: factor out require_forward_progress overload to target one inferior Simon Marchi
2025-06-06 13:36 ` Lancelot SIX
2025-06-05 20:16 ` [PATCH 5/5] gdb/amd-dbgapi: disable forward progress requirement in amd_dbgapi_target_breakpoint::check_status Simon Marchi
2025-06-06 13:58 ` Lancelot SIX
2025-06-09 15:59 ` Simon Marchi [this message]
2025-06-06 9:59 ` [PATCH 1/5] gdb/amd-dbgapi: remove unnecessary AMD_DBGAPI_EVENT_KIND_NONE argument Lancelot SIX
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=b5cc7cb6-e5cc-47e9-93a5-6fce8e54fac9@simark.ca \
--to=simark@simark.ca \
--cc=gdb-patches@sourceware.org \
--cc=lancelot.six@amd.com \
--cc=simon.marchi@efficios.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