Author: martin
Date: 2007-06-28 10:41:41 -0400 (Thu, 28 Jun 2007)
New Revision: 80973
Modified:
branches/martin/debugger-dublin/debugger/backend/BreakpointHandle.cs
branches/martin/debugger-dublin/debugger/backend/SingleSteppingEngine.cs
Log:
Cosmetic fixes.
Modified: branches/martin/debugger-dublin/debugger/backend/BreakpointHandle.cs
===================================================================
--- branches/martin/debugger-dublin/debugger/backend/BreakpointHandle.cs
2007-06-28 14:07:19 UTC (rev 80972)
+++ branches/martin/debugger-dublin/debugger/backend/BreakpointHandle.cs
2007-06-28 14:41:41 UTC (rev 80973)
@@ -103,8 +103,7 @@
if (has_load_handler || (index > 0))
return false;
- // sse.PushOperation (new
OperationInsertMethodBreakpoint (function, method_loaded));
- return true;
+ throw new InternalError ();
}
public override void Insert (Thread target)
Modified:
branches/martin/debugger-dublin/debugger/backend/SingleSteppingEngine.cs
===================================================================
--- branches/martin/debugger-dublin/debugger/backend/SingleSteppingEngine.cs
2007-06-28 14:07:19 UTC (rev 80972)
+++ branches/martin/debugger-dublin/debugger/backend/SingleSteppingEngine.cs
2007-06-28 14:41:41 UTC (rev 80973)
@@ -393,14 +393,6 @@
(cevent.Type !=
Inferior.ChildEventType.CHILD_SIGNALED)) {
reached_main = true;
- StackFrame ret_frame;
- try {
- ret_frame =
inferior.Architecture.UnwindStack (
- current_frame,
inferior, null, 0);
- } catch {
- ret_frame = null;
- }
-
if (!process.IsManaged)
inferior.InitializeModules ();
}
@@ -2133,63 +2125,6 @@
sse, fhandle.Function, fhandle.MethodLoaded));
return true;
}
-
- protected class MainMethodBreakpoint : Breakpoint
- {
- public readonly TargetFunctionType Function;
- BreakpointHandle handle;
-
- public override bool IsPersistent {
- get { return false; }
- }
-
- public override bool IsActivated {
- get { return handle != null; }
- }
-
- internal override BreakpointHandle Resolve
(TargetMemoryAccess target,
- StackFrame
frame)
- {
- if (handle != null)
- return handle;
-
- handle = new FunctionBreakpointHandle (this, 0,
Function, -1);
- return handle;
- }
-
- public override void Activate (Thread target)
- {
- Resolve (target, target.CurrentFrame);
- if (handle == null)
- throw new TargetException
(TargetError.LocationInvalid);
- handle.Insert (target);
- }
-
- public override void Deactivate (Thread target)
- {
- if (handle != null) {
- handle.Remove (target);
- handle = null;
- }
- }
-
- internal override void OnTargetExited ()
- {
- handle = null;
- }
-
- protected override void GetSessionData
(System.Xml.XmlElement root,
-
System.Xml.XmlElement element)
- {
- throw new InvalidOperationException ();
- }
-
- internal MainMethodBreakpoint (TargetFunctionType
function)
- : base (EventType.Breakpoint, function.Name,
ThreadGroup.Global)
- {
- this.Function = function;
- }
- }
}
protected class OperationMethodBreakpoint : OperationCallback
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches