Skip to content

Commit

Permalink
add comment and rename variable to $ReturnValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Trass3r committed Sep 17, 2020
1 parent e12f7db commit 29b0537
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/MIDebugEngine/Engine.Impl/DebuggedProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1237,6 +1237,7 @@ private async Task HandleBreakModeEvent(ResultEventArgs results, BreakRequest br
}
}
// step over/into
// NB: unfortunately this event does not provide a return value: https://sourceware.org/bugzilla/show_bug.cgi?id=26354
else if (reason == "end-stepping-range")
_callback.OnStepComplete(thread);
// step out
Expand All @@ -1245,7 +1246,7 @@ private async Task HandleBreakModeEvent(ResultEventArgs results, BreakRequest br
string resultVar = results.Results.TryFindString("gdb-result-var"); // a gdb value history var like "$1"
if (!string.IsNullOrEmpty(resultVar))
{
ReturnValue = new VariableInformation("Function return value", resultVar, cxt, Engine, (AD7Thread)thread.Client, isParameter: false);
ReturnValue = new VariableInformation("$ReturnValue", resultVar, cxt, Engine, (AD7Thread)thread.Client, isParameter: false);
await ReturnValue.Eval();
}
_callback.OnStepComplete(thread);
Expand Down

0 comments on commit 29b0537

Please sign in to comment.