Skip to content

Commit 551b20e

Browse files
authored
Write assembly name (#2123)
Minor md update Initial implementation of mono_unity_oop_debug_lookup_source_location Fix copy-paste error fixed code_start calulation Fix typo remove mono_unity_oop_debug_lookup_source_location Remove unused include Rollback other unnecessary changes
1 parent f358421 commit 551b20e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Unity-build.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
#### Runtime
1616
From the root of your cloned mono directory run:
17-
- external\buildscripts\build_runtime_win.pl
17+
- external\buildscripts\build_runtime_win64.pl
18+
(there are variations of build_runtime script for other platforms)
1819

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

@@ -52,4 +53,4 @@ From the root of your cloned mono directory run:
5253
### Build on other platforms
5354
- Run external/buildscripts/build_runtime_myplatform.pl (Runtime only)
5455
or
55-
- Run ./autogen.sh followed by make. (All platforms (requires cygwin on windows))
56+
- Run ./autogen.sh followed by make. (All platforms (requires cygwin on windows))

mono/metadata/oop.c

+7
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ typedef struct _MonoStackFrameDetails
5151
size_t classNameLen;
5252
char* assemblyName;
5353
size_t assemblyNameLen;
54+
char* assemblyFileName;
55+
size_t assemblyFileNameLen;
5456
} MonoStackFrameDetails;
5557

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

430+
frameDetails->assemblyFileNameLen = read_nt_string(
431+
frameDetails->assemblyFileName,
432+
frameDetails->assemblyFileNameLen,
433+
read_pointer(OFFSET_MEMBER(MonoImage, image, filename)));
434+
428435
free(className);
429436
free(nsName);
430437

0 commit comments

Comments
 (0)