Programming/Linux Kernel

cross kernel debugging

쵸코아몬드 2020. 6. 19. 17:19

Ubuntu 18.04(Bionic) does not support arm-none-eabi-gdb. 

However, we can use gdb-multiarch for remote debugging

 

Installation

$ sudo apt-get install gdb-multiarch

 

Run & attach

$ gdb-multiarch
(gdb) set arc arm
(gdb) symbol-file <path_to_vmlinux>
(gdb) target remote localhost:7000