Clean up temporary files on exit

Replace the `exec` to GDB with a regular command and register an EXIT
handler that cleans up files in a list that every user of `mktemp`
should add their file to.

Add -K to disable for debugging.

Test: ./build/aarch64/ -T <template> -v # observe cleanup
Change-Id: I15eb29029245ef4f42f0ec41b777979cdd21f617
1 file changed
tree: ee6ce4559909e57de05b841014bbe114a4261a54
  1. Makefile
  2. aarch64/
  4. kvm-unit-tests/