Skip to content

Instantly share code, notes, and snippets.

Last active July 13, 2022 06:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Debugging ARMv8 Unikraft apps using gdb

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment