s-matyukevich/raspberry-pi-os

Can i debug the raspberry pi os on the qemu and gdb? if it does, please tell me how to use it, thanks!

Zhao233 opened this issue · 2 comments

Can i debug the raspberry pi os on the qemu and gdb? if it does, please tell me how to use it, thanks!

you can run qemu like this
qemu-system-aarch64 -machine raspi3 -nographic -kernel kernel.img -S -s
where -S -s Means use debug. the default port is 1234.
the you can use

gdb-multiarch
target remote :1234

to attach it.

Thank you so much!!!! I will try it !