Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想打印来自 cuda 反汇编的信息。
例如,我可以使用信息寄存器 R1 在 cuda 中打印寄存器,但是我无法弄清楚如何在 ( ) 中打印 c[0x0][0x20]或MOV R1, c[0x0][0x20]在[R13+0x9f] ( STL.U8 [R13+0x9f], RZ)中打印
c[0x0][0x20]
MOV R1, c[0x0][0x20]
[R13+0x9f]
STL.U8 [R13+0x9f], RZ
使用 gdb 或 cuda-gdb 时可以使用 disass 命令反汇编当前代码或特定位置的代码。
cuda-gdb a.out
调试程序
b main
打破主要
r
运行程序,当断点被命中时
disass
在断点处反汇编以下代码