Skip to content

Handle NDirect and CLR-to-COM stubs explicitly in ILStubManager::TraceManager - #39791

Closed
hoyosjs wants to merge 1 commit into
dotnet:masterfrom
hoyosjs:juhoyosa/fix-stubtracing
Closed

hoyosjs wants to merge 1 commit into
dotnet:masterfrom
hoyosjs:juhoyosa/fix-stubtracing

Conversation

@hoyosjs

@hoyosjs hoyosjs commented Jul 22, 2020

Copy link
Copy Markdown
Member

Fallback to step over for unknown stub types.

@hoyosjs
hoyosjs requested review from jkoritzinsky and jkotas July 22, 2020 18:12

@jkotas jkotas left a comment

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.

Thanks!

trace->InitForUnmanaged(target);
}
else if (pStubMD->IsStructMarshalStub())
else if (pStubMD->IsPInvokeStub())

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.

Does the implementation of IsPInvokeStub handle other stub types like instantiating stubs correctly? It looks like its definition might not fully cover those cases.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

You are actually right that some things fall through these/don't get correctly classified. I'll need to dive deeper to see why this is happening

@hoyosjs hoyosjs added the NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) label Jul 22, 2020
@AaronRobinsonMSFT

Copy link
Copy Markdown
Member

@hoyosjs Are we still planning on getting this in?

@hoyosjs

hoyosjs commented Oct 12, 2020

Copy link
Copy Markdown
Member Author

@AaronRobinsonMSFT No. This caused even worse behavior in the debugger. I need to get back to investigating but I haven't had time lately. I'll leave the issue open and close this.

@hoyosjs hoyosjs closed this Oct 12, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 8, 2020
@hoyosjs
hoyosjs deleted the juhoyosa/fix-stubtracing branch September 19, 2022 21:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Interop-coreclr NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stepping into multidimensional array of tuples in debug causes internal CLR error

5 participants