-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
VS4Mac needs a runtime API to symbolize managed IPs #61186
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @tommcdon Issue DetailsBackground and motivationVS4Mac needs a way to symbolize managed IPs when rethrowing the NSException from Objective C++. API Proposalnamespace System.Runtime.CompilerServices.
{
public static partial class RuntimeHelpers
{
/// <summary>
/// Returns the method info instance for the managed code IP address.
/// </summary>
/// <param name="ip">code address</param>
/// <returns>MethodInfo instance or null if IP not found</returns>
internal static MethodInfo? GetMethodInfoFromIP(IntPtr ip);
}
} API UsageTBD Alternative DesignsNo response RisksNo response
|
Do you mean for this to become a public API in .NET 7? I think it should be under
|
Also, why is not |
There is an existing API |
I included you on a thread that should have more background/context. This issue is a WIP and isn't fleshed out. |
…S4Mac VS4Mac needs a way to symbolize managed IPs when rethrowing a native NSException from Objective C++. This is a short term API needed for the next 6.0 service release discoverable only through reflection. Issue: dotnet#61186
…tiveIP API for VS4Mac (#61298) * Add System.Diagnostics.StackFrame.GetMethodInfoFromNativeIP API for VS4Mac VS4Mac needs a way to symbolize managed IPs when rethrowing a native NSException from Objective C++. This is a short term API needed for the next 6.0 service release discoverable only through reflection. Issue: #61186 * Code review feedback * Remove unneccesary blank line
No active requests for this feature, closing |
Background and motivation
VS4Mac needs a way to symbolize managed IPs when rethrowing a native NSException from Objective C++. They do the symbolizing in the telemetry upload on the unhandled NSException crash. They don't currently build a StackTrace/StackFrames when the managed NSException wrapper is thrown so all they need currently is a way to convert a IP address of a managed method into a full method name string.
This is a short term API needed for the next 6.0 service release discoverable only through reflection.
API Proposal
API Usage
Alternative Designs
For .NET 7.0, we could replace this temporary API with this public one:
Risks
The .NET 6.0 API has the following limitations that will need to be addressed:
The text was updated successfully, but these errors were encountered: