Author: martin
Date: 2007-06-19 11:10:23 -0400 (Tue, 19 Jun 2007)
New Revision: 80174
Modified:
branches/martin/debugger-dublin/debugger/backend/ILanguageBackend.cs
branches/martin/debugger-dublin/debugger/backend/MonoThreadManager.cs
branches/martin/debugger-dublin/debugger/languages/mono/MonoLanguageBackend.cs
Log:
Remove old and unused code.
Modified: branches/martin/debugger-dublin/debugger/backend/ILanguageBackend.cs
===================================================================
--- branches/martin/debugger-dublin/debugger/backend/ILanguageBackend.cs
2007-06-19 15:10:16 UTC (rev 80173)
+++ branches/martin/debugger-dublin/debugger/backend/ILanguageBackend.cs
2007-06-19 15:10:23 UTC (rev 80174)
@@ -21,8 +21,7 @@
ThrowException,
HandleException,
ReachedMain,
- FinalizeManagedCode,
- ClassInitialized
+ FinalizeManagedCode
}
internal interface ILanguageBackend : IDisposable
Modified: branches/martin/debugger-dublin/debugger/backend/MonoThreadManager.cs
===================================================================
--- branches/martin/debugger-dublin/debugger/backend/MonoThreadManager.cs
2007-06-19 15:10:16 UTC (rev 80173)
+++ branches/martin/debugger-dublin/debugger/backend/MonoThreadManager.cs
2007-06-19 15:10:23 UTC (rev 80174)
@@ -260,10 +260,6 @@
public readonly TargetAddress CompileMethod;
public readonly TargetAddress GetVirtualMethod;
public readonly TargetAddress GetBoxedObjectMethod;
- public readonly TargetAddress InsertBreakpoint;
- public readonly TargetAddress RemoveBreakpoint;
- public readonly TargetAddress RegisterClassInitCallback;
- public readonly TargetAddress RemoveClassInitCallback;
public readonly TargetAddress RuntimeInvoke;
public readonly TargetAddress CreateString;
public readonly TargetAddress ClassGetStaticFieldData;
@@ -296,10 +292,6 @@
CompileMethod = reader.ReadAddress ();
GetVirtualMethod = reader.ReadAddress ();
GetBoxedObjectMethod = reader.ReadAddress ();
- InsertBreakpoint = reader.ReadAddress ();
- RemoveBreakpoint = reader.ReadAddress ();
- RegisterClassInitCallback = reader.ReadAddress ();
- RemoveClassInitCallback = reader.ReadAddress ();
RuntimeInvoke = reader.ReadAddress ();
CreateString = reader.ReadAddress ();
ClassGetStaticFieldData = reader.ReadAddress ();
@@ -319,15 +311,6 @@
Report.Debug (DebugFlags.JitSymtab, this);
}
-
- public override string ToString ()
- {
- return String.Format (
- "MonoDebuggerInfo
({0:x}:{1:x}:{2:x}:{3:x}:{4:x}:{5:x}:{6:x})",
- MonoTrampolineCode, SymbolTable,
SymbolTableSize,
- CompileMethod, InsertBreakpoint,
RemoveBreakpoint,
- RuntimeInvoke);
- }
}
internal class MonoMetadataInfo
Modified:
branches/martin/debugger-dublin/debugger/languages/mono/MonoLanguageBackend.cs
===================================================================
---
branches/martin/debugger-dublin/debugger/languages/mono/MonoLanguageBackend.cs
2007-06-19 15:10:16 UTC (rev 80173)
+++
branches/martin/debugger-dublin/debugger/languages/mono/MonoLanguageBackend.cs
2007-06-19 15:10:23 UTC (rev 80174)
@@ -651,39 +651,6 @@
}
#endregion
-#region jit breakpoint handling
- private struct MyBreakpointHandle
- {
- public readonly int Index;
- public readonly BreakpointHandler Handler;
- public readonly object UserData;
-
- public MyBreakpointHandle (int index, BreakpointHandler
handler, object user_data)
- {
- this.Index = index;
- this.Handler = handler;
- this.UserData = user_data;
- }
- }
-
- Hashtable breakpoints = new Hashtable ();
-
- internal int InsertBreakpoint (Thread target, string
method_name,
- BreakpointHandler handler,
object user_data)
- {
- TargetAddress retval = target.CallMethod (
- info.InsertBreakpoint, TargetAddress.Null, 0,
method_name);
-
- int index = (int) retval.Address;
-
- if (index <= 0)
- return -1;
-
- breakpoints.Add (index, new MyBreakpointHandle (index,
handler, user_data));
- return index;
- }
-#endregion
-
#region Class Init Handlers
static int next_unique_id;
@@ -693,25 +660,6 @@
return ++next_unique_id;
}
- Hashtable class_init_handlers = new Hashtable ();
-
- internal int InsertClassInitHandler (Thread target,
MonoClassType klass,
- ClassInitHandler handler)
- {
- int index = GetUniqueID ();
-
- TargetAddress retval = target.CallMethod (
- info.RegisterClassInitCallback,
- klass.File.MonoImage, index, klass.Name);
-
- if (retval.IsNull) {
- class_init_handlers.Add (index, handler);
- return index;
- }
-
- handler (target, retval);
- return -1;
- }
#endregion
#region Method Load Handlers
@@ -1016,16 +964,6 @@
break;
}
- case NotificationType.ClassInitialized: {
- int idx = (int) arg;
- ClassInitHandler handler = (ClassInitHandler)
class_init_handlers [idx];
- if (handler != null) {
- class_init_handlers.Remove (idx);
- handler (inferior, data);
- }
- break;
- }
-
default:
Console.WriteLine ("Received unknown
notification {0:x} / {1} {2:x}",
(int) type, data, arg);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches