ROCgdb
ROCgdb copied to clipboard
When using rocgdb, breakpoints cannot be set inside the kernel function and cannot enter the kernel
Hi, The rocm-5.2.1 installation package does not contain rocgdb by default,,so users have to compile and install it themselves.
step1:
I used the following config options:
../configure --program-prefix=roc
--enable-64-bit-bfd --enable-targets="x86_64-linux-gnu,amdgcn-amd-amdhsa"
--disable-ld --disable-gas --disable-gdbserver --disable-sim --enable-tui
--disable-gdbtk --disable-gprofng --disable-shared --with-expat
--with-system-zlib --without-guile --with-babeltrace --with-lzma
--with-python=python3
step2: Use the hipcc command with the -g option to generate the executable file
step3: Run rocgdb
rocgdb ./bit_extract
(gdb) b 12
error:no comiled code for line 12 .....
Which step is wrong?