Added a better mechanism for getting GDB to attach by doing a getchar, similar to how DynamoRIO does it.