added GDB debugging hook to heca code