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

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−addressrip --end-address ripendaddressrip+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

AKravets April 14, 2025, 11:19am 2

Hi @cedricyangks,

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

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,pc,pc+0x20

system Closed April 29, 2025, 3:05am 4

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.