Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NativeAOT] Add method parameter names to stack trace if available #73578

Merged
merged 5 commits into from
Aug 18, 2022

Conversation

jasper-d
Copy link
Contributor

@jasper-d jasper-d commented Aug 8, 2022

After taking a look at SchemaDef, I assume that parameter names are available iff we have a (Qualified)MethodHandle.

  • Added an overload for EmitMethodParameters that takes a MethodHandle and prints the parameters with type and name. Restructured the calling code to make use of it.
  • Enabled StackTraceTest
  • Changed type parameter spacing to make test pass

Fixes #73051

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Aug 8, 2022
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Looks great otherwise, thanks!

@jasper-d jasper-d marked this pull request as draft August 11, 2022 19:16
@jasper-d jasper-d marked this pull request as ready for review August 17, 2022 14:22
Copy link
Member

@MichalStrehovsky MichalStrehovsky left a comment

Choose a reason for hiding this comment

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

Looks great, thank you!

I'll try to get this ported into .NET 7 (we snapped from the main branch on Tuesday.)

@MichalStrehovsky MichalStrehovsky merged commit 519d1e3 into dotnet:main Aug 18, 2022
@MichalStrehovsky
Copy link
Member

/backport to release/7.0-rc1

@github-actions
Copy link
Contributor

Started backporting to release/7.0-rc1: https://github.com/dotnet/runtime/actions/runs/2881987012

@jasper-d jasper-d deleted the aot-param-names branch August 31, 2022 22:01
@ghost ghost locked as resolved and limited conversation to collaborators Oct 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stack traces should include parameter names
2 participants