Add some codes for connecting to GDB.

make DEBUG=1

DEBUG option will make a simulator that can be conntected to GDB.