Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
2004-03-04 Martin Baulig <martin@ximian.com>
Browse files Browse the repository at this point in the history
	* backends/SingleSteppingEngine.cs (ProcessCommand): Call Step()
	for OperationType.Run and OperationType.RunInBackground.
	(Step, DoStep): Allow OperationType.Run(InBackground).

svn path=/trunk/debugger/; revision=23722
  • Loading branch information
Martin Baulig committed Mar 5, 2004
1 parent ccd0a20 commit d030d85
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2004-03-04 Martin Baulig <martin@ximian.com>

* backends/SingleSteppingEngine.cs (ProcessCommand): Call Step()
for OperationType.Run and OperationType.RunInBackground.
(Step, DoStep): Allow OperationType.Run(InBackground).

2004-03-04 Martin Baulig <martin@ximian.com>

* classes/Backtrace.cs (Length): Return 0 if we don't have any
Expand Down
22 changes: 16 additions & 6 deletions backends/SingleSteppingEngine.cs
Expand Up @@ -151,6 +151,10 @@ public void ProcessEvent (long status)
inferior.EnableBreakpoint (stepping_over_breakpoint);
manager.ReleaseGlobalThreadLock (this);
stepping_over_breakpoint = 0;

Report.Debug (DebugFlags.SSE,
"{0} stepped over breakpoint: {1} ({2:x}) {3}",
this, cevent, status, current_operation);
}

if (manager.HandleChildEvent (inferior, cevent))
Expand Down Expand Up @@ -301,11 +305,7 @@ public void ProcessCommand (Operation operation)
switch (operation.Type) {
case OperationType.Run:
case OperationType.RunInBackground:
TargetAddress until = operation.Until;
if (!until.IsNull)
do_continue (until);
else
do_continue ();
Step (operation);
break;

case OperationType.StepNativeInstruction:
Expand Down Expand Up @@ -1404,7 +1404,8 @@ protected bool Step (Operation operation)

Report.Debug (DebugFlags.SSE, "{0} starting {1}", this, operation);

if (operation.StepFrame == null) {
if ((operation.Type != OperationType.Run) &&
(operation.StepFrame == null)) {
do_step ();
return true;
}
Expand Down Expand Up @@ -1480,6 +1481,15 @@ bool callback_method_compiled (Callback cb, long data1, long data2)
// </summary>
protected bool DoStep (bool first)
{
if (current_operation.Type == OperationType.Run) {
TargetAddress until = current_operation.Until;
if (!until.IsNull)
do_continue (until);
else
do_continue ();
return false;
}

StepFrame frame = current_operation.StepFrame;
if (frame == null)
return true;
Expand Down

0 comments on commit d030d85

Please sign in to comment.