-
Notifications
You must be signed in to change notification settings - Fork 520
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
Extend oop api2 #2123
base: unity-6000.2-mbe
Are you sure you want to change the base?
Extend oop api2 #2123
Conversation
|
@@ -14,7 +14,8 @@ | |||
|
|||
#### Runtime | |||
From the root of your cloned mono directory run: | |||
- external\buildscripts\build_runtime_win.pl | |||
- external\buildscripts\build_runtime_win64.pl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit, spelling ither
-> other
mono/metadata/oop.c
Outdated
@@ -425,6 +470,11 @@ mono_unity_oop_get_stack_frame_details( | |||
frameDetails->assemblyNameLen, | |||
read_pointer(OFFSET_MEMBER(MonoImage, image, assembly_name))); | |||
|
|||
frameDetails->assemblyNameLen = read_nt_string( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is a copy/paste error, and you want to assign to assemblyFileNameLen
?
mono/metadata/oop.c
Outdated
|
||
// the line below will lead to access violation as code_start point to non-initialized memory | ||
// so probably oop_jit_info_table_find above didn't fully intitialized ji ? | ||
gpointer code_starts = ji->code_start; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ji
is a pointer in the address space of another process. You likely need:
gpointer code_starts = read_pointer(OFFSET_MEMBER(MonoJitInfo, ji, code_start));
// so probably oop_jit_info_table_find above didn't fully intitialized ji ? | ||
gpointer code_starts = read_pointer(OFFSET_MEMBER(MonoJitInfo, ji, code_start)); | ||
|
||
gint32 relative_address = (gint32)((char*)frameAddress - (char*)code_starts); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joncham now relative_address work correctly, however hitting this condition.
mono/mono/metadata/mono-debug.c
Line 755 in ad9fb61
if (mono_debug_format == MONO_DEBUG_FORMAT_NONE) |
I guess we need to add mono_oop_debug_init ? Is that feasible?
Reviewers: please consider these questions as well! ❤️
Release notes
Fixed UUM-XXXXXX @username:
Mono: Your release notes go here.