Fixing reset problem on target board for GDB way