Redirect qemu output to stdio
Redirect gdb output to gdb.txt