Author: martin
Date: 2006-05-31 08:40:52 -0400 (Wed, 31 May 2006)
New Revision: 61318

Modified:
   trunk/debugger/ChangeLog
   trunk/debugger/arch/CoreFile.cs
   trunk/debugger/backends/SingleSteppingEngine.cs
   trunk/debugger/backends/ThreadServant.cs
   trunk/debugger/classes/Thread.cs
   trunk/debugger/frontend/Command.cs
Log:
2006-05-31  Martin Baulig  <[EMAIL PROTECTED]>

        * classes/Thread.cs
        (Thread): Merge `Finish' and `FinishNative'.

        * backends/ThreadServant.cs
        (ThreadServant): Merge `Finish' and `FinishNative'.



Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog    2006-05-31 12:40:17 UTC (rev 61317)
+++ trunk/debugger/ChangeLog    2006-05-31 12:40:52 UTC (rev 61318)
@@ -1,5 +1,13 @@
 2006-05-31  Martin Baulig  <[EMAIL PROTECTED]>
 
+       * classes/Thread.cs
+       (Thread): Merge `Finish' and `FinishNative'.
+
+       * backends/ThreadServant.cs
+       (ThreadServant): Merge `Finish' and `FinishNative'.
+
+2006-05-31  Martin Baulig  <[EMAIL PROTECTED]>
+
        * frontend/Command.cs
        (SteppingCommand.DoStep): Return a `CommandResult'.
 

Modified: trunk/debugger/arch/CoreFile.cs
===================================================================
--- trunk/debugger/arch/CoreFile.cs     2006-05-31 12:40:17 UTC (rev 61317)
+++ trunk/debugger/arch/CoreFile.cs     2006-05-31 12:40:52 UTC (rev 61318)
@@ -412,16 +412,11 @@
                                throw new InvalidOperationException ();
                        }
 
-                       public override void Finish (CommandResult result)
+                       public override void Finish (bool native, CommandResult 
result)
                        {
                                throw new InvalidOperationException ();
                        }
 
-                       public override void FinishNative (CommandResult result)
-                       {
-                               throw new InvalidOperationException ();
-                       }
-
                        public override void Continue (TargetAddress until, 
bool in_background,
                                                       CommandResult result)
                        {

Modified: trunk/debugger/backends/SingleSteppingEngine.cs
===================================================================
--- trunk/debugger/backends/SingleSteppingEngine.cs     2006-05-31 12:40:17 UTC 
(rev 61317)
+++ trunk/debugger/backends/SingleSteppingEngine.cs     2006-05-31 12:40:52 UTC 
(rev 61318)
@@ -1403,16 +1403,11 @@
                        StartOperation (new OperationStep (StepMode.NextLine, 
result));
                }
 
-               public override void Finish (CommandResult result)
+               public override void Finish (bool native, CommandResult result)
                {
-                       StartOperation (new OperationFinish (false, result));
+                       StartOperation (new OperationFinish (native, result));
                }
 
-               public override void FinishNative (CommandResult result)
-               {
-                       StartOperation (new OperationFinish (true, result));
-               }
-
                public override void Continue (TargetAddress until, bool 
in_background,
                                               CommandResult result)
                {

Modified: trunk/debugger/backends/ThreadServant.cs
===================================================================
--- trunk/debugger/backends/ThreadServant.cs    2006-05-31 12:40:17 UTC (rev 
61317)
+++ trunk/debugger/backends/ThreadServant.cs    2006-05-31 12:40:52 UTC (rev 
61318)
@@ -131,13 +131,8 @@
                // <summary>
                //   Continue until leaving the current method.
                // </summary>
-               public abstract void Finish (CommandResult result);
+               public abstract void Finish (bool native, CommandResult result);
 
-               // <summary>
-               //   Continue until leaving the current method.
-               // </summary>
-               public abstract void FinishNative (CommandResult result);
-
                public abstract void Continue (TargetAddress until, bool 
in_background,
                                               CommandResult result);
 

Modified: trunk/debugger/classes/Thread.cs
===================================================================
--- trunk/debugger/classes/Thread.cs    2006-05-31 12:40:17 UTC (rev 61317)
+++ trunk/debugger/classes/Thread.cs    2006-05-31 12:40:52 UTC (rev 61318)
@@ -314,31 +314,17 @@
                // <summary>
                //   Continue until leaving the current method.
                // </summary>
-               public CommandResult Finish ()
+               public CommandResult Finish (bool native)
                {
                        lock (this) {
                                check_servant ();
                                operation_completed_event.Reset ();
                                CommandResult result = new StepCommandResult 
(this);
-                               servant.Finish (result);
+                               servant.Finish (native, result);
                                return result;
                        }
                }
 
-               // <summary>
-               //   Continue until leaving the current method.
-               // </summary>
-               public CommandResult FinishNative ()
-               {
-                       lock (this) {
-                               check_servant ();
-                               operation_completed_event.Reset ();
-                               CommandResult result = new StepCommandResult 
(this);
-                               servant.FinishNative (result);
-                               return result;
-                       }
-               }
-
                public CommandResult Continue ()
                {
                        return Continue (TargetAddress.Null, false);

Modified: trunk/debugger/frontend/Command.cs
===================================================================
--- trunk/debugger/frontend/Command.cs  2006-05-31 12:40:17 UTC (rev 61317)
+++ trunk/debugger/frontend/Command.cs  2006-05-31 12:40:52 UTC (rev 61318)
@@ -897,10 +897,7 @@
 
                protected override CommandResult DoStep (ScriptingContext 
context)
                {
-                       if (Native)
-                               return CurrentThread.FinishNative ();
-                       else
-                               return CurrentThread.Finish ();
+                       return CurrentThread.Finish (Native);
                }
 
                // IDocumentableCommand

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to