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

Use the Unity PAL for the IL2CPP debugger #855

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

joshpeterson
Copy link

Change the IL2CPP manager debugger to use the Unity PAL, so the debugger
can work on all platforms that IL2CPP supports.

@joshpeterson joshpeterson requested review from joncham and a user February 23, 2018 20:25
@mderoy
Copy link

mderoy commented Feb 23, 2018

@joshpeterson if we're using the PAL for il2cpp now, can we remove the "-win32", "-mac" etc files from the copy scripts, and all that logic about what to include from the builder?


if (!addr_info->entries) {
*result = NULL;
mono_free_address_info(addr_info);
Copy link
Member

Choose a reason for hiding this comment

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

We allocate above with g_new0 I assume this is correct de-allocator?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, this is the proper way to de-allocate. This code was taken directly from Mono.

@joshpeterson
Copy link
Author

@mderoy:We're only using the PAL for the debugger now, so we need to keep copying those files for IL2CPP on Mono.

Change the IL2CPP manager debugger to use the Unity PAL, so the debugger
can work on all platforms that IL2CPP supports.
guint32 TailLength;
} TRANSMIT_FILE_BUFFERS;

#endif
Copy link
Author

@joshpeterson joshpeterson Feb 26, 2018

Choose a reason for hiding this comment

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

Note that I've just had to add this for one of our platforms. It is a bit of a hack, but I think it is acceptable for now, as it gets the build going, and it is only used in a stub method that won't be called anywhere in the debugger code.

@mderoy
Copy link

mderoy commented Feb 26, 2018

@joshpeterson whats stopping us from using the pal for il2cpp on mono? its still experimental and we'll need to do it eventually anyway.

@joshpeterson
Copy link
Author

We're missing a number of implementations in the Unity PAL now. We could handle them, but it is just a matter of getting the time to do it.

@joshpeterson joshpeterson merged commit 7e21310 into unity-master Feb 27, 2018
@joshpeterson joshpeterson deleted the il2cpp-debugger-unity-pal branch February 27, 2018 20:36
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.

3 participants