示例#1
0
文件: Debugger.cs 项目: kztao/FlingOS
 /// <summary>
 /// Disposes of the debugger instance cleanly.
 /// </summary>
 public void Dispose()
 {
     State = States.Stopping;
     TheSerial.Dispose();
     TheSerial = null;
     GC.SuppressFinalize(this);
 }
示例#2
0
文件: Debugger.cs 项目: kztao/FlingOS
        /// <summary>
        /// Stops the debugger and closes the connection.
        /// </summary>
        /// <returns>True if debugger is successfully stopped.</returns>
        public bool Stop()
        {
            State = States.Stopping;

            bool OK = TheSerial.Disconnect();
            TheSerial.Dispose();
            TheSerial = null;
            return OK;
        }
示例#3
0
文件: Debugger.cs 项目: kztao/FlingOS
 /// <summary>
 /// Initialises a new instance on the debugger but does not connect 
 /// it to the kernel. Use <see cref="Init"/>.
 /// </summary>
 public Debugger()
 {
     TheSerial = new Serial();
 }