Skip to content

feat: Add disassembler support for macos #2781

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

filzrev
Copy link
Contributor

@filzrev filzrev commented Jun 15, 2025

This PR intended to add DisassemblyDiagnoser supports for macos.

Currently DisassemblyDiagnoser is not supported on macos.
This limitation appears to be coming from the ClrMD library.
And It seems to be resolved in the latest version.

@timcassell
Copy link
Collaborator

You tested it? The issues on ClrMD are still open. microsoft/clrmd#1034 microsoft/clrmd#1230

@filzrev
Copy link
Contributor Author

filzrev commented Jun 15, 2025

I've not noticed issues listed above. I confirmed only https://github.com/microsoft/clrmd/issues/888

And I'm only confirmed unit tests passed on CI. (Because I'm not have mac)
If it's still not works on macos. Please close this PR.

@@ -37,19 +37,11 @@ public static IEnumerable<object[]> GetAllJits()
{
yield return new object[] { Jit.RyuJit, Platform.X64, CoreRuntime.Core80 }; // .NET Core x64
}
else if (RuntimeInformation.GetCurrentPlatform() is Platform.Arm64 && OsDetector.IsLinux())
else if (RuntimeInformation.GetCurrentPlatform() is Platform.Arm64)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note: This changes affects windows-11-arm tests also.

@filzrev
Copy link
Contributor Author

filzrev commented Jun 15, 2025

DisassemblyDiagnoserTests seems successfully passed on both macos(x64/arm64)

It would be helpful if someone could confirm DisassemblyDiagnoser's behaviors with an actual mac device.
In particular, it would be helpful to verify that the following code paths are working on macOS.

using (var dataTarget = DataTarget.AttachToProcess(
settings.ProcessId,
suspend: false))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants