Skip to content

Instantly share code, notes, and snippets.

@mariasfiraiala
Last active July 13, 2022 06:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariasfiraiala/34a7b5b41c4e5515c7f0ad8a2c220ef9 to your computer and use it in GitHub Desktop.
Save mariasfiraiala/34a7b5b41c4e5515c7f0ad8a2c220ef9 to your computer and use it in GitHub Desktop.
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