Use gdbtui instead of gdb.