[PATCH] D79866: [HIP] Do not emit debug info for stub function
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 13 13:03:58 PDT 2020
yaxunl added a comment.
In D79866#2034748 <https://reviews.llvm.org/D79866#2034748>, @tra wrote:
> In D79866#2034683 <https://reviews.llvm.org/D79866#2034683>, @yaxunl wrote:
>
> > can you try set bp by using file name and line number on the kernel?
>
>
> In regular gdb it is set on the stub.
> In cuda-gdb the behavior is interesting -- it initially gets set and breaks on the stub, but it also breaks on the entry into kernel. Once the kernel address is known, cuda-gdb no longer breaks on the stub. If I set breakpoint after the kernel is known, it's set on the kernel only and never stops on stub.
>
> Overall the behavior is reasonable, IMO.
According to our debugger developers, cuda-gdb's behavior is not upstreamable. I can limit this patch to HIP if it is not needed for CUDA.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79866/new/
https://reviews.llvm.org/D79866
More information about the cfe-commits
mailing list