Skip to content

Extend oop api2 #2123

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

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Unity-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 are variations of build_runtime script for other platforms)

or: Open msvc/mono.sln in Visual Studio and build the Runtime/libmono-dynamic project

Expand Down Expand Up @@ -52,4 +53,4 @@ From the root of your cloned mono directory run:
### Build on other platforms
- Run external/buildscripts/build_runtime_myplatform.pl (Runtime only)
or
- Run ./autogen.sh followed by make. (All platforms (requires cygwin on windows))
- Run ./autogen.sh followed by make. (All platforms (requires cygwin on windows))
7 changes: 7 additions & 0 deletions mono/metadata/oop.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ typedef struct _MonoStackFrameDetails
size_t classNameLen;
char* assemblyName;
size_t assemblyNameLen;
char* assemblyFileName;
size_t assemblyFileNameLen;
} MonoStackFrameDetails;

typedef gboolean(*ReadMemoryCallback)(void* buffer, gsize* read, const void* address, gsize size, void* userdata);
Expand Down Expand Up @@ -425,6 +427,11 @@ mono_unity_oop_get_stack_frame_details(
frameDetails->assemblyNameLen,
read_pointer(OFFSET_MEMBER(MonoImage, image, assembly_name)));

frameDetails->assemblyFileNameLen = read_nt_string(
frameDetails->assemblyFileName,
frameDetails->assemblyFileNameLen,
read_pointer(OFFSET_MEMBER(MonoImage, image, filename)));

free(className);
free(nsName);

Expand Down