Skip to content
This repository was archived by the owner on Nov 1, 2020. It is now read-only.

Fix debugger stepping into virtual calls - #5031

Merged
MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:virtualCallStepping
Nov 27, 2017
Merged

Fix debugger stepping into virtual calls#5031
MichalStrehovsky merged 2 commits into
dotnet:masterfrom
MichalStrehovsky:virtualCallStepping

Conversation

@MichalStrehovsky

Copy link
Copy Markdown
Member

This is a simpler fix than #4740 and gets the job done. It only uses the existing infrastructure we already have for line number emission. It's a little bit less elegant (not "correct by construction"), but we guard correctness with an assert.

switch (target.Architecture)
{
case TargetArchitecture.X64:
offset = 3;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on what this magic number is?

@MichalStrehovsky
MichalStrehovsky merged commit 8e2859e into dotnet:master Nov 27, 2017
@MichalStrehovsky
MichalStrehovsky deleted the virtualCallStepping branch November 27, 2017 15:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants