Author: toshok
Date: 2005-04-11 21:53:25 -0400 (Mon, 11 Apr 2005)
New Revision: 42816
Modified:
trunk/debugger/ChangeLog
trunk/debugger/frontend/Command.cs
Log:
2005-04-11 Chris Toshok <[EMAIL PROTECTED]>
* frontend/Command.cs (EventHandleCommand): split out this
behavior from BreakpointEnableCommand, since it really annoys me
to have BreakpointDisableCommand subclassing from
BreakpointEnableCommand.
(BreakpointDisableCommand): subclass from EventHandleCommand.
(BreakpointEnableCommand): same.
(BreakpointDeleteCommand): same.
Modified: trunk/debugger/ChangeLog
===================================================================
--- trunk/debugger/ChangeLog 2005-04-12 01:44:27 UTC (rev 42815)
+++ trunk/debugger/ChangeLog 2005-04-12 01:53:25 UTC (rev 42816)
@@ -1,5 +1,15 @@
2005-04-11 Chris Toshok <[EMAIL PROTECTED]>
+ * frontend/Command.cs (EventHandleCommand): split out this
+ behavior from BreakpointEnableCommand, since it really annoys me
+ to have BreakpointDisableCommand subclassing from
+ BreakpointEnableCommand.
+ (BreakpointDisableCommand): subclass from EventHandleCommand.
+ (BreakpointEnableCommand): same.
+ (BreakpointDeleteCommand): same.
+
+2005-04-11 Chris Toshok <[EMAIL PROTECTED]>
+
* configure.in: fix the AM_CONDITIONAL for BFD_TARGET_X86_64,
which (for some unknown reason) was causing the debugger to
configure in support for x86_64 on ubuntu 5.04 (on a p4).
Modified: trunk/debugger/frontend/Command.cs
===================================================================
--- trunk/debugger/frontend/Command.cs 2005-04-12 01:44:27 UTC (rev 42815)
+++ trunk/debugger/frontend/Command.cs 2005-04-12 01:53:25 UTC (rev 42816)
@@ -1586,7 +1586,7 @@
public string Documentation { get { return String.Format
("valid args are:{0}", GetCommandList()); } }
}
- public class BreakpointEnableCommand : DebuggerCommand,
IDocumentableCommand
+ public abstract class EventHandleCommand : DebuggerCommand
{
protected IEventHandle handle;
@@ -1603,19 +1603,22 @@
handle = context.Interpreter.GetEvent (id);
return handle != null;
}
+ }
+ public class BreakpointEnableCommand : EventHandleCommand,
IDocumentableCommand
+ {
protected override void DoExecute (ScriptingContext context)
{
handle.Enable (context.CurrentProcess.Process);
}
// IDocumentableCommand
- public virtual CommandFamily Family { get { return
CommandFamily.Breakpoints; } }
- public virtual string Description { get { return "Enable
breakpoint/catchpoint."; } }
- public virtual string Documentation { get { return ""; } }
+ public CommandFamily Family { get { return
CommandFamily.Breakpoints; } }
+ public string Description { get { return "Enable
breakpoint/catchpoint."; } }
+ public string Documentation { get { return ""; } }
}
- public class BreakpointDisableCommand : BreakpointEnableCommand,
IDocumentableCommand
+ public class BreakpointDisableCommand : EventHandleCommand,
IDocumentableCommand
{
protected override void DoExecute (ScriptingContext context)
{
@@ -1623,12 +1626,12 @@
}
// IDocumentableCommand
- public override CommandFamily Family { get { return
CommandFamily.Breakpoints; } }
- public override string Description { get { return "Disable
breakpoint/catchpoint."; } }
- public override string Documentation { get { return ""; } }
+ public CommandFamily Family { get { return
CommandFamily.Breakpoints; } }
+ public string Description { get { return "Disable
breakpoint/catchpoint."; } }
+ public string Documentation { get { return ""; } }
}
- public class BreakpointDeleteCommand : BreakpointEnableCommand,
IDocumentableCommand
+ public class BreakpointDeleteCommand : EventHandleCommand,
IDocumentableCommand
{
protected override void DoExecute (ScriptingContext context)
{
@@ -1636,9 +1639,9 @@
}
// IDocumentableCommand
- public override CommandFamily Family { get { return
CommandFamily.Breakpoints; } }
- public override string Description { get { return "Delete
breakpoint/catchpoint."; } }
- public override string Documentation { get { return ""; } }
+ public CommandFamily Family { get { return
CommandFamily.Breakpoints; } }
+ public string Description { get { return "Delete
breakpoint/catchpoint."; } }
+ public string Documentation { get { return ""; } }
}
public abstract class SourceCommand : DebuggerCommand
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches