Author: martin
Date: 2006-04-18 13:59:32 -0400 (Tue, 18 Apr 2006)
New Revision: 59606

Modified:
   trunk/debugger/backends/SingleSteppingEngine.cs
   trunk/debugger/classes/Process.cs
   trunk/debugger/frontend/Interpreter.cs
Log:
Some more work on attaching.

Modified: trunk/debugger/backends/SingleSteppingEngine.cs
===================================================================
--- trunk/debugger/backends/SingleSteppingEngine.cs     2006-04-18 17:20:25 UTC 
(rev 59605)
+++ trunk/debugger/backends/SingleSteppingEngine.cs     2006-04-18 17:59:32 UTC 
(rev 59606)
@@ -503,6 +503,12 @@
                        current_operation.Execute (this);
                }
 
+               internal void Attached ()
+               {
+                       frame_changed (inferior.CurrentFrame, null);
+                       engine_stopped = true;
+               }
+
                internal void ReachedMain (TargetAddress method)
                {
                        CommandResult result = new Thread.StepCommandResult 
(thread);

Modified: trunk/debugger/classes/Process.cs
===================================================================
--- trunk/debugger/classes/Process.cs   2006-04-18 17:20:25 UTC (rev 59605)
+++ trunk/debugger/classes/Process.cs   2006-04-18 17:59:32 UTC (rev 59606)
@@ -358,8 +358,12 @@
                                        ThreadCreated (inferior, thread, true);
                                }
 
-                               if (mono_manager == null)
+                               if (mono_manager == null) {
+                                       ReachedMain ();
+                                       inferior.InitializeModules ();
+                                       engine.Attached ();
                                        goto done;
+                               }
 
                                attach_results = new ArrayList ();
                                foreach (Thread thread in thread_hash.Values)

Modified: trunk/debugger/frontend/Interpreter.cs
===================================================================
--- trunk/debugger/frontend/Interpreter.cs      2006-04-18 17:20:25 UTC (rev 
59605)
+++ trunk/debugger/frontend/Interpreter.cs      2006-04-18 17:59:32 UTC (rev 
59606)
@@ -339,9 +339,7 @@
                                new ThreadEventSink (this, debugger);
 
                                current_process = main_process = 
debugger.Attach (Options, pid);
-
                                current_thread = current_process.MainThread;
-                               Wait (current_thread);
 
                                return current_process;
                        } catch (TargetException e) {

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

Reply via email to