Author: toshok
Date: 2005-06-09 19:13:35 -0400 (Thu, 09 Jun 2005)
New Revision: 45722
Modified:
trunk/debugger/ChangeLog
trunk/debugger/backends/Debugger.cs
Log:
2005-06-09 Chris Toshok <[EMAIL PROTECTED]>
* backends/Debugger.cs (DebuggerBackend..ctor): clean up this and
DoInitialize/Initialize. There's no need for the complex
initialization stuff that was here before. Put it all in the
.ctor.
(DebuggerBackend.CreateDebuggerHandler): comment on the awful name
of this function.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-06-09 22:32:47 UTC (rev 45721)
+++ trunk/debugger/ChangeLog 2005-06-09 23:13:35 UTC (rev 45722)
@@ -1,5 +1,14 @@
2005-06-09 Chris Toshok <[EMAIL PROTECTED]>
+ * backends/Debugger.cs (DebuggerBackend..ctor): clean up this and
+ DoInitialize/Initialize. There's no need for the complex
+ initialization stuff that was here before. Put it all in the
+ .ctor.
+ (DebuggerBackend.CreateDebuggerHandler): comment on the awful name
+ of this function.
+
+2005-06-09 Chris Toshok <[EMAIL PROTECTED]>
+
* frontend/Makefile.am, arch/Makefile.am, interfaces/Makefile.am,
test/Makefile.am, wrapper/Makefile.am, jay/Makefile.am,
classes/Makefile.am, Makefile.am, backends/server/Makefile.am,
Modified: trunk/debugger/backends/Debugger.cs
===================================================================
--- trunk/debugger/backends/Debugger.cs 2005-06-09 22:32:47 UTC (rev 45721)
+++ trunk/debugger/backends/Debugger.cs 2005-06-09 23:13:35 UTC (rev 45722)
@@ -33,21 +33,6 @@
{
module_manager = new ModuleManager ();
- DoInitialize ();
- }
-
- public static void Initialize ()
- {
- Mono.Debugger.ThreadManager.Initialize ();
- }
-
- protected void DoInitialize ()
- {
- Initialize ();
- if (initialized)
- throw new InternalError ();
- initialized = true;
-
source_factory = new SourceFileFactory ();
languages = new ArrayList ();
@@ -60,6 +45,12 @@
module_manager.ModulesChanged += new
ModulesChangedHandler (modules_changed);
module_manager.BreakpointsChanged += new
BreakpointsChangedHandler (breakpoints_changed);
+ // XXX should this be in the backend at all?
+ // all it does is cause Ctrl-C to be caught by
+ // the debugger. Seems like this is a
+ // frontend specific thing.
+ Mono.Debugger.ThreadManager.Initialize ();
+
thread_manager = new ThreadManager (this);
thread_manager.InitializedEvent += new
ThreadEventHandler (initialized_event);
}
@@ -168,6 +159,7 @@
symtab_manager.Wait ();
}
+ // XXX This desperately needs to be renamed.
internal ILanguageBackend CreateDebuggerHandler ()
{
mono_language = new MonoLanguageBackend (this);
@@ -231,8 +223,6 @@
bfd_container.AddFile (process, filename, true,
false, false);
}
- bool initialized = false;
-
//
// IDisposable
//
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches