Mono.Debugger.Thread.Finish C# (CSharp) Method

Finish() public method

Continue until leaving the current method.
public Finish ( bool native ) : ThreadCommandResult
native bool
return ThreadCommandResult
        public ThreadCommandResult Finish(bool native)
        {
            lock (this) {
                check_alive ();

                if (!native) {
                    if (CurrentMethod == null)
                        throw new TargetException (TargetError.NoMethod);

                    StepFrame step_frame = new StepFrame (
                        null, StepMode.Finish, null,
                        CurrentMethod.StartAddress, CurrentMethod.EndAddress);

                    return Old_Step (StepMode.Finish, step_frame);
                } else {
                    StepFrame step_frame = new StepFrame (
                        null, StepMode.FinishNative,
                        CurrentFrame.StackPointer);

                    return Old_Step (StepMode.FinishNative, step_frame);
                }
            }
        }

Usage Example

コード例 #1
0
ファイル: Command.cs プロジェクト: baulig/debugger
 protected override CommandResult DoStep(Thread thread, ThreadingModel model, ScriptingContext context)
 {
     return thread.Finish (Native);
 }