Debug your AArch64
Unikraft app using gdb
.
For the sake of simplicity, let our application be helloworld
.
Use qemu-system-aarch64 -machine virt -kernel build/app-helloworld_kvm-arm64 -nographic -cpu cortex-a53 -s -S
in order to start your program and suspend the CPU.
Use gdb-multiarch -ex "target remote tcp::1234" build/app-helloworld_kvm-arm64.dbg
so that you'll be able to connect gdb
to your executable.
You'll need to have gdb-multiarch
installed, so be aware of that.