Clean up temporary files on run_qemu.sh 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/run_qemu.sh -T <template> -v # observe cleanup
Change-Id: I15eb29029245ef4f42f0ec41b777979cdd21f617
1 file changed
tree: ee6ce4559909e57de05b841014bbe114a4261a54
  1. aarch64/
  2. kvm-unit-tests/
  3. common.inc
  4. Makefile