CUDA-GDB to display aarch64 byte-code when debugging (Jetson Orin Nano, Tegra SOC)

Using cuda-gdb, what is the command to print/display the AARCH64 byte-code when debugging the executable

in lldb (x86_64 device) i can view the byte code by running
disassemble --start-address $rip --end-address $rip+0x2c --bytes

→ 0x100002d22 <+5154>: 89 d8 movl %ebx, %eax
0x100002d24 <+5156>: 89 da movl %ebx, %edx
0x100002d26 <+5158>: 48 c7 c1 80 00 00 00 movq $0x80, %rcx

Hi @cedricyangks,

You can use the disassemble command to dump a range of memory as machine instrcutions:

1 Like

thank you, i figured it out

something like this in cuda-gdb to print the byte code of the ARM_Cortex

disassemble /r $pc,$pc+0x20